I’m trying to set a cookie for my site. I need somebody to help. I can’t learn how to use Cookies, it’s too hard. Here’s what I need (I made a dummy file that has comments. Below each comment, somebody please write the correct code to do what the comment says. If ya don’t understand something ask me and I’ll tell ya):
// IMPORTANT NOTE: All the Cookies saved in these scripts
//are supposed to expire: April 1st, 2025
// Index page
<SCRIPT LANGUAGE=”Javascript”>
// Look for “BFDBHQ” Cookie
// If Found: Abort Program
// If Not Found: Excecute Decision Function
//***Decision Function
// Prompt User Saying “Yes or No?” (I’ll change the message // later) & Let User Choose From Yes And No (e.g. // asking them a yes/no question)
// If User Selects Yes: Forward Them To “customize.htm”
// If User Selects No: Excecute Visitor Function
//***Visitor Function
// (This will set Default Variables)
// Set BFDBHQ Cookie Variables:
// layout = “1”
// usertype = “visitor”
// email = “
// End Script
</SCRIPT>
// customize.htm
// (There is a form in this page. I want to store the values
//of the form fields in a cookie.)
<SCRIPT LANGUAGE=”Javascript”>
// When user clicks Submit Button, save the following
// variables to a cookie:
// layout = (the value of the “layout” form dropdown box)
// usertype = (the value of the “usertype” form dropdown box)
// email = (the value of the “email” text box)
// Also, additional coding may be required for changing the
//Cookie’s values.
</SCRIPT>
That’s all for now, I’ll need help later but this is it for now. Thank you so much for helping! You can either reply here to this topic, email me the code (