Hello,
I'm trying to validate a form selling "Widgets" using JavaScript. So far I have the validation bit done and I'm really happy with what I've done so far! I now have to move on to the cookies part. Basically, I want there to be a confirmation page which shows all of the details entered in the form and calculates the total price. I need a little help with setting the cookies.
I start off by using this code:
Code:
function setCookie(name, value)
{
document.cookie = name + "=" + escape(value)
}
Now I need to set the data entered into the form as cookies. How would I do that? I don't want someone to do it for me, I just want to know how I would use
setCookie("name","value") to work with my form.
Thanks in advance,
Steven