<input type="radio" name="FTP" value="yes">Yes<BR>
<input type="radio" name="FTP" value="no">No<BR>

note the values has changed, you can put whatever you want, you can also
add more radio choices.

this question should be directed to beginners-cgi:-)

Etienne

Rohesia Hamilton wrote:
> 
> I'm completely new to Perl and am writing my first
> script.
> 
> I have regular input fields on a form like this:
> <input type="text" name="FirstName">
> which I'm managing to access in a form-to-email script
> like this:
> $FirstName = param('FirstName');
> 
> That's working. However, wherever I have radio buttons
> on the form like this:
> 
> <input type="radio" name="FTP" value="false">Yes<BR>
> <input type="radio" name="FTP" value="false">No<BR>
> 
> then the same kind of attempt to access the value
> (despite the fact that one of the values would surely
> have changed to "true" upon submission of the form --
> although I realize I'm still lacking a way to sort out
> which option was picked), the value I'm given is,
> always: "false"
> 
> - which is useless to me. I'm needing to know whether
> it was "Yes" or "No" that was picked.
> 
> If someone could please give me a clue how I should
> rewrite the script to get the radio button value
> that's returned, I'd really appreciate it.
> 
> Thanks,
> 
> Rohesia Hamilton Metcalfe
> 
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Etienne Marcotte
Specifications Management - Quality Control
Imperial Tobacco Ltd. - Montreal (Qc) Canada
514.932.6161 x.4001

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to