set cookie with javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marc heiners

    set cookie with javascript

    Hello!

    I have to overgive an information from one website to another (same domain)
    by sertting a cookie with javascript.
    When the website is requested by a user a session cookie with a default
    value (for example 'miller') should be set with javascript or php. If the
    user chose a drop down menue on the website the cookie´s value should be
    overwritten with the chosen value from the drop down menu.

    <select name="familynam es">
    <option value="1"select ed>miller</option>
    <option value="2">smith </option>
    <option value="3">tanne r</option>
    </select>

    Can someone help me here please?

    Best regards
    Marc

  • RobG

    #2
    Re: set cookie with javascript

    On Dec 12, 1:00 pm, "marc heiners" <mheinersun...@ t-online.dewrote:
    Hello!
    >
    I have to overgive an information from one website to another (same domain)
    by sertting a cookie with javascript.
    When the website is requested by a user a session cookie with a default
    value (for example 'miller') should be set with javascript or php. If the
    user chose a drop down menue on the website the cookie´s value should be
    overwritten with the chosen value from the drop down menu.
    >
    <select name="familynam es">
    <option value="1"select ed>miller</option>
    <option value="2">smith </option>
    <option value="3">tanne r</option>
    </select>
    >
    Can someone help me here please?
    You may want to read some of the links in the following FAQ entry:

    <URL: http://www.jibbering.com/faq/#FAQ4_4 >


    --
    Rob

    Comment

    Working...