Connecting Tech Pros Worldwide Help | Site Map

set cookie with javascript

  #1  
Old December 12th, 2007, 03:05 AM
marc heiners
Guest
 
Posts: n/a
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="familynames">
<option value="1"selected>miller</option>
<option value="2">smith</option>
<option value="3">tanner</option>
</select>

Can someone help me here please?

Best regards
Marc

  #2  
Old December 12th, 2007, 08:35 AM
RobG
Guest
 
Posts: n/a

re: set cookie with javascript


On Dec 12, 1:00 pm, "marc heiners" <mheinersun...@t-online.dewrote:
Quote:
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="familynames">
<option value="1"selected>miller</option>
<option value="2">smith</option>
<option value="3">tanner</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
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manipulating PHP's session cookie with JavaScript: Possible? John Drako answers 3 November 22nd, 2005 12:05 AM
Javascript can't delete server created cookie with no domain? Wysiwyg answers 3 November 19th, 2005 01:03 AM
HACKING WITH JAVASCRIPT Gowhera Hussain answers 0 July 18th, 2005 12:26 AM