Is there a simple way to prevent form text fields going blank while validation is being processed in php?
3条回答 默认 最新
- dpxnrx11199 2013-05-27 06:27关注
try this
<input type="text" name="fname" value="<?php echo (isset($_POST['fname']) && $_POST['fname']) ? $_POST['fname'] : ''; ?>" >
解决 无用评论 打赏 举报