Hi Forum,
I am trying to create a drop down menu using PHP that will assign a value to a Cookie.
I'm not sure how to script something to do this, but I am providing an example
of the code i am trying to use. I would appreciate it if someone could show me
the correct way to write a code that will assign the cookie "color" value.
I think my problem lies in the <input> part and possibly other areas.
Thanks 4 any help on this..
<form name="ColorPage">
<select name="list"><option value="0" [selected]>Beige
<option value="setcookie("color", "1", time()+3600);">Red
<option value="setcookie("color", "2", time()+3600);">Yellow
<option value="setcookie("color", "3", time()+3600);">White
<option value="setcookie("color", "4", time()+3600);">Green
<option value="setcookie("color", "5", time()+3600);">Blue
</select>
<input type=button value="<-- Select Page Color" onclick="color(color.list.options[color.list.selectedIndex].value)">
</form>