|
Posted by Graham Weldon on 05/25/07 00:17
Name your Radio options in the same set, with the same name:
<input type="radio" name="timespan" value="1"/> Day<br/>
<input type="radio" name="timespan" value="2"/> Week<br/>
<input type="radio" name="timespan" value="3"/> Month<br/>
This ensures that only one option can be selected, and on the action page,
you can reference: $_REQUEST['timespan'] for the value.
Cheers,
Graham
"thanos" <inlove22@hotmail.com> wrote in message
news:1180045747.014489.107060@p77g2000hsh.googlegroups.com...
> Hello,
>
> How do i pass the value of the radio button to be put of the action
> that includes the value as part of the URL being submitted - "/
> picked.php?pick_num=". Any help with be appreciated. Thanks
>
>
>
> <form method="post" action="/picked.php?pick_num=".<php? $value ?> >
> <input type="hidden" name="cmd" value="0">
>
>
> <table width="100%">
> <td align="center">
> <INPUT TYPE='RADIO' NAME='pick_1' VALUE='1'>Day;
> <INPUT TYPE='RADIO' NAME='pick_2' VALUE='2'>Week;
> </td>
> </tr>
> <tr>
> <td align="center"><input type="img src="/images/pick_now.gif"
> BORDER="0" name="send"></td>
> </tr>
> </table>
>
Navigation:
[Reply to this message]
|