expire a page after form submission

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!

Moderator: General Moderators

Post Reply
User avatar
dheeraj
Forum Commoner
Posts: 40
Joined: Fri Feb 06, 2009 11:54 am

expire a page after form submission

Post by dheeraj »

i have a registration form & as the user registered by clicking on submit button, he has been redirected to the thanks page. Now the problem is when he clicks on back button of the browser he get the form filled with previous data. So for protecting this i want to expire that registration form after submission.

Is there is any way to do it....
user333
Forum Newbie
Posts: 8
Joined: Tue Mar 03, 2009 12:02 pm

Re: expire a page after form submission

Post by user333 »

Why do not you try setting default values with some JS for the fields?
Something like this:
in the loading event you call a function that sets the values for the fields in the form(Some Defaults)
then when the user clicks in the field just clear the box.
Try it and tell us whether it works?
Post Reply