Good day to all, and much respect for all PHP info given to the world-at-large.
My question is relatively simple as i am a noob:
How do i ensure that my forms retain the variables entered by a user (multiple form variables per pages) after a submit action has been made or the back button selected?
Eg. pagename is step1.php which posts to step2.php
<html>
<form action = step2.php method = post>
Name <input type = text name = cn><br>
Address <input type = text name = adr><br>
<!and so on....!>
<input type = submit value = continue>
</form>
</html>
If a user successfully gets to step2.php (and accessing those values are ok using sessions), how do i ensure that by clicking the 'back button' on the browser or a similar <a> link to step1.php, the user will see the data previously entered, eg. name, addr in their respective fields?
Any help appreciated.