English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to design a cookie that notifies the user if they have already filled out a webpage form. I have already designed a page that thanks the user for making contact when the user clicks on the "submit" button, but I am having difficulty with the function and where to put it.

Here's what I have (assume that the appropriate body, form, and closing tags are in place):

Contact Page




At this point it goes into the form and the web page design. I still can't get the cookie to work. What am I doing wrong? Everything else works, but the part about the cookies at the top.

2007-05-01 05:30:28 · 1 answers · asked by Valencia E 1 in Computers & Internet Programming & Design

1 answers

IF I UNDERSTAND WHAT YOU WANT (...and I'm sort of dense...) Possibility (how 'bout this?)

On submitting the form, store a cookie, containing the date and time...)



where some_routine checks for the cookie and gripes before even allowing the form to be visible, doing a document.location= some other page if the viewer has already filled out the form

2007-05-01 07:16:24 · answer #1 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers