Forums

setting a cookie on the form

tonyalferez 29 Dec, 2009
I've got the form all set up. It works great, sends the email, posts to the db and redirects to the desired page.

CAN I SET A COOKIE so that the user doesn't have to see the form if they come back to the same (form) page a second time? (provided, of course, they haven't cleared their cache)

Thanks
tonyalferez 29 Dec, 2009
Looking through your forums, I see that there may be other methods than the cookie. I'm just looking for the best way to allow a user to "re-submit" a form that they already filled out...
GreyHead 29 Dec, 2009
Hi tonyalferez,

In the beginning of the Form HTML check the user's id and look to see if there is a result already saved. If there is either show a message or load the results for editing.

Ths Profile Plugin may help with this.

Bob
This topic is locked and no more replies can be posted.