Finding out which radio button has been checked
Posted: Sun Feb 23, 2003 2:55 pm
Hey I have this form:
<p>How long have you been playing cs:<br>
<input type="radio" name="cstime" value="6 Months">6 Months<br>
<input type="radio" name="cstime" value="1 Year">1 Year<br>
<input type="radio" name="cstime" value="2 Years">2 Years<br>
<input type="radio" name="cstime" value="2 1/2 Years and up">2 1/2 Years and up<br><br>
</p>
I would like to know how I can get the value of the radio button that was pushed and store it into a variable in the php script that processes this form.
Thanks for all help and advice provided.
<p>How long have you been playing cs:<br>
<input type="radio" name="cstime" value="6 Months">6 Months<br>
<input type="radio" name="cstime" value="1 Year">1 Year<br>
<input type="radio" name="cstime" value="2 Years">2 Years<br>
<input type="radio" name="cstime" value="2 1/2 Years and up">2 1/2 Years and up<br><br>
</p>
I would like to know how I can get the value of the radio button that was pushed and store it into a variable in the php script that processes this form.
Thanks for all help and advice provided.