View Single Post
01-15-2008, 06:35 PM
#1
Steven Fergus is offline Steven Fergus
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 1,212
iTrader: 3 / 100%
 

Steven Fergus is on a distinguished road

  Old  Cookies - Need some help

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