Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing Form Values with Back button 1

Status
Not open for further replies.

kophjager

Technical User
Oct 24, 2002
31
US
Hello All,
I have done a search and cannot seem to find a hint on clearing form values once submitted. All I am doing is submitting a form to my database and redirecting the user to another web page . Upon doing that I wil click the back button and the data I have entered in the text boxes of the form is still there. I have not done any sort of validation on input data. How would I integrate clear the fields of the text boxes after submitting the data to my database? Basically once the user has submitted his data I do not want it to appear in the form if say he hits the back button or navigates to the same page from another link in the site. Thanks in advance.

Kyle
 
Try adding this in your body tag. substituting [red]yourformname [/red]for, yup you guessed, Your Forms Name

onLoad="yourformname.reset()"

Cheech The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top