April 19th, 2000, 10:44 PM
i use a simple form to test,
i can set a cookie once,
but when i change the selected button to
another value, the cookie isn't changed
also the question, how do i retrieve the cookie so that the next time the rigth option
is selected ??
i'm using windows 98 and IE5.0 maybe there it goes wrong ??
well here is my simple code :
setcookie("radio",$radio,time()+31536000); //set the cookie expiry date
<form action="<? print $PHP_SELF ?>" method="post">
Sex : male<input type="radio" name="radio" value="male")<br>
female <input type="radio" name="radio" value="Female") <br>
<input type="submit" name="submit" value="submit">
i can't understand why the cookie not changes
thanks for your help, i really appreciate
this forum !
Jan. The Netherlands
April 20th, 2000, 11:00 AM
to begin with, you must have <input type="submit" name="submit" value="submit">
If this does not help (i think it will), print the value of $radio to see if it gets the right value.