PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have made a form which i want a user to only access once. I need some ideas on how i can do this.
I have a page which will post the info - form.php?user=ok
they can then fill out the form and press submit - however when you press the back button they go back to the form.php and it will let them back in and submit again - how can i stop them from submitting twice ? could i do this using cookies ? but what if the user has cookies disabled ?
So how would i do this ? i have tried using session but when the browser back button is clicked it some how doesn`t register without refreshing the page first ?
When they hit submit the form processes' then refreshed to whatever page which in return goes to the page you really want them to see when they are done. I use this in logouts.
They click on Logout. It takes them to the logout page kills the session then uses the refresh to a new page and then there it uses the refresh in the header back to index or whatever. Hitting the back button will not take them back to the page they just submited from. I just make the delay 0 seconds.