Xzy*_*zyK 1 html php submit button
我似乎无法在互联网上找到我的问题的答案.我不禁认为这是一个愚蠢的错误,但是我已经超过了我的代码至少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>
Run Code Online (Sandbox Code Playgroud)
最后两个提交按钮不起作用.当我拿走包含$Profile_Location和的php时$Profile_Referee_Password,提交按钮有效.
对不起,我的意思是不工作意味着提交按钮没有响应.页面不会重新加载,它的作用类似于提交按钮被禁用.提交按钮看起来已启用,但它似乎不想"按".
经过2天的头痛我已经弄明白了:当提交按钮超出任何"div"的高度和宽度范围时,它不会像按钮那样起作用,而更像是一张图片.因此,作为一个好的做法,当一个按钮不能正常工作时,检查它是否在您放入的容器的"外部".
这个错误不会出现在查看源页面或任何错误检查中.但是,如果确实如此,我不知道.我正在使用Mac,Safari 6和CS5 Dreamweaver,如果有人有兴趣的话.