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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

performing a step after the submit button is pressed

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
HI,

I want to be able to save a cookie after the person enters some data but only after the submit button is pressed so I can get what they typed in and use one of the fields as a cookie. Any help would be great.

Thanks
Frank
 
put the cokie code in a function, and call the function onPress of the submit button For God so loved the world that he gave his one and only son, that whoever believes in him won't die but have everlasting life - Jesus - John 3:16 -
 
I'd agree with what defrex said, except I'd use onSubmit. Just remember to return true from the function so the submit will go through. Ex:
Code:
<form ... onSubmit=&quot;return saveCookie()&quot;>
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top