I have a registration form, with quite a bit of validation, if something doesnt match, then the php script will throw up an error with a "click here to go back"
When the user goes back using their browser or following the link, the variables of username, password etc etc dissapear causing the user to re-type everything, how can I stop this?
<a href="url.php?user=<?php echo $_POST['user']; ?>">click here to go back</a>
Get it? Obviously you'd be best off doing it a bit more cleaner than that, but those are your options (query, cookie, session) and they're all similar to implement.
[edit:] If you really wanted, you *could* post them back as well with a bit of js.
__________________ Omnis mico antequam dominus Spookster!
The thing is, there is alot of information that will need to be moved around. The form uses "POST" to post to the next page, is there a way of transferring the data without the user knowing (without using sessions or cookies?) SOrry if you've already answered this
Do you have a session_start(); php statement as the first thing on every page that references any $_SESSION variable?
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.