/    Sign up×
Community /Pin to ProfileBookmark

Help with Cookies!!!

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 = “[email protected]
// 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 ([email protected]), or contact me in AIM (DaBreegster is my s/n) or MSN Messenger ([email protected]) THANK YOU!!!!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @dabreegster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...