Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button selection

Status
Not open for further replies.

yj7sum

Programmer
Joined
Jul 24, 2001
Messages
6
Location
US
Please help. How do I write in Perl to show that either a selection is chosen and then perform some action. If something is done with the text box, then I can refer to it by $input {'name'}, to refer to the radio button, it's $input {'info'}, how to refer to the specific radio button of choice a) lookup or b) add to database? I just posted but forgot to type in the subject, so I could not get back to it.

This is the html form:

<form METHOD=&quot;POST&quot; ACTION=&quot;/cgi-bin/somename.pl&quot;>
Name: <INPUT TYPE=&quot;text&quot; SIZE=25 NAME=&quot;name&quot; MAXLENGTH=45>

Look up: <INPUT TYPE=&quot;radio&quot; NAME=&quot;info&quot; VALUE=&quot;lookup&quot; CHECKED>

Add to database: <INPUT TYPE=&quot;radio&quot; NAME=&quot;info&quot; VALUE=&quot;addb&quot;>

 
I was able to get into the previous post by clicking on the &quot;news&quot; link. Thanks, Tracy, for your response.

yj7sum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top