doumo3903 2012-09-02 13:25
浏览 33
已采纳

不工作后用PHP提交HTML按钮

I cannot seem to find an answer to my question on the internet. I can't help but think it is a stupid mistake, however I have gone over my code at least 6 - 7 times and even took a break to look at it with fresh eyes. If someone could look it over for me, that would be super sweet!

<div id="input_alignment" style="font-size:20px">

<?php 

if(!($Valid_Profile == true)){ ?>
    ...Form that has no issues
<?php }
else{ ?>

    <form action="Redact_Profiles.php" style="font-size:19px" method="post">
    <input type="hidden" value="<?php echo $Valid_Profile ?>" name="Valid_Profile" />
    <input type="hidden" value="<?php echo $Username ?>" name="Username" />
    <input type="hidden" value="<?php echo $Password ?>" name="Password" />

    <br />
    &emsp;&emsp; <?php echo $Profile_Username . "<br>"; ?>
    <input type="submit" style="font-size:9px" value="Edit" name="" />&ensp;<?php echo $Profile_Password . "<br>"; ?>
    <br />
    <br />
    ......<br />
    <input type="submit" style="font-size:9px" value="Edit" name="" />&ensp;<?php echo $Profile_First_Name . "<br>"; ?>
    <input type="submit" style="font-size:9px" value="Edit" name="" />&ensp;<?php echo $Profile_Last_Name . "<br>"; ?>
    &emsp;&emsp; <?php echo $Profile_EMail . "<br>"; ?>
    <br />
    <input type="submit" style="font-size:9px" value="Edit" name="" />&ensp;<?php echo $Profile_Location . "<br>"; ?>
    <input type="submit" style="font-size:9px" value="Edit" name="" />&ensp;<?php echo $Profile_Referee_Password . "<br>"; ?>
    <input type="submit" style="font-size:9px" value="Edit" name="" />
    </form>
<?php }

?>
</div>

The very last two submit buttons don't work. When I take away the php containing the $Profile_Location and $Profile_Referee_Password, the submit buttons work.

Sorry, what I mean by Doesn't work means that the submit button isn't responding. The page doesn't re-load, and it acts like the submit button is disabled. The submit button looks enabled, but it is like it doesn't want to "press".

  • 写回答

1条回答 默认 最新

  • dosin84644 2012-09-02 23:20
    关注

    After 2 days of headache I have figured it out: When a submit button is outside the bounds of the height and width of any "div", it will not function like a button, but more like a picture. So as a good practice, when a button is not functioning properly, check to see if it is literally "outside" of the container you put it in.
    This error doesn't present itself in viewing the source page, or in any error checking. However, if it does, I don't know about it. I am using a Mac, Safari 6, and CS5 Dreamweaver, if anyone is interested.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog