Hi
When you submit a form use POST method
on the other page or the same catch the variable as $_POST['somevariable']
check if its valid .... if its then echo that value th the field that you want it to be
like
<input type = "text" name = "somevariable" value = "<?php echo $_POST['somevariable']; ?> ">
else its
<input type = "text" name = "somevariable" value = " ">
when all fields are valid insert it into the database
So that would be it
Greg