Forum Moderators: coopster

Message Too Old, No Replies

Incomplete Forms, retaining the data?

         

tonynoriega

7:24 pm on May 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a page that validates certain fields were populated....

say a users gets all 30 fields populated, except the required one....

they get the error, that says "error you must complete all fields, please go Back"....but when i tested it, all the fields are blank....

how can i fix this?

ahmedtheking

7:43 pm on May 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



print the data back like so:

<?php echo $_POST['nameoffield'];?> or <?=$_POST['nameoffield'];?> in the 'value' attribute of the form inputs.