Forum Moderators: open
This is probably a very simple question but it has me going nuts. I have a Form on my website that takes all the fields and on submission sends them to a PHP script. If some of the information is wrong it reshows the page and says what info needs to be changed. When it does this though it erases all the forms entrys. My registration is fairly long and I personally think this is one of the most annoying things a site can do. I have researched this everywhere and can't find any hints, can anybody help me?
<form method=post action="">
<?PHP
print "<input type=text name=\"textfield1\"";
if($_POST['textfield1']) print " value=\"" . $_POST['textfield1'] . "\"";
print ">";
?>
</form>