"remembering" a value when form is redisplayed

J

Julia

I have a page that the user will use multiple times. When they submit the
form, it sends me the info, and redisplays the form for the user to use
again. I have one field in there that I'd like the form to "remember" and
set upon redisplaying of the page. I tried adding it to my href line
(below) as a form.contact.value = ... but I couldn't figure out how to have
it retain that info after it's redisplayed the page.

<a href="javascript:if(validateForm(form)){enterRemarks(form);window.location.h
ref = 'remarksNEW.html';form.Remarks.value=''}"
class=optionButtonXSmall>Submit</a>

Can someone point me in the right direction on how I would go about doing
this?

Thank you!
 
C

Chris Leonard

I have a page that the user will use multiple times. When they submit the
form, it sends me the info, and redisplays the form for the user to use
again. I have one field in there that I'd like the form to "remember" and
set upon redisplaying of the page. I tried adding it to my href line
(below) as a form.contact.value = ... but I couldn't figure out how to have
it retain that info after it's redisplayed the page.

Why not use a cookie ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top