【发布时间】:2012-08-27 12:13:09
【问题描述】:
我似乎无法在互联网上找到我的问题的答案。我不禁认为这是一个愚蠢的错误,但是我已经检查了我的代码至少 6 到 7 次,甚至休息一下用新的眼光看它。如果有人能帮我看一下,那就太好了!
<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 />
   <?php echo $Profile_Username . "<br>"; ?>
<input type="submit" style="font-size:9px" value="Edit" name="" /> <?php echo $Profile_Password . "<br>"; ?>
<br />
<br />
......<br />
<input type="submit" style="font-size:9px" value="Edit" name="" /> <?php echo $Profile_First_Name . "<br>"; ?>
<input type="submit" style="font-size:9px" value="Edit" name="" /> <?php echo $Profile_Last_Name . "<br>"; ?>
   <?php echo $Profile_EMail . "<br>"; ?>
<br />
<input type="submit" style="font-size:9px" value="Edit" name="" /> <?php echo $Profile_Location . "<br>"; ?>
<input type="submit" style="font-size:9px" value="Edit" name="" /> <?php echo $Profile_Referee_Password . "<br>"; ?>
<input type="submit" style="font-size:9px" value="Edit" name="" />
</form>
<?php }
?>
</div>
最后两个提交按钮不起作用。当我删除包含$Profile_Location 和$Profile_Referee_Password 的php 时,提交按钮起作用。
抱歉,我所说的不起作用意味着提交按钮没有响应。该页面不会重新加载,并且就像提交按钮被禁用一样。提交按钮看起来已启用,但就像它不想“按下”一样。
【问题讨论】:
-
当您查看应该回显
$Profile_Location和$Profile_Referee_Password的源时会显示什么?您可能会遇到破坏标记的错误。 -
开启错误报告。
-
它看起来像我的代码,除了 php 值被它们所代表的值替换......如果这有意义的话。