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="POST" ACTION="/cgi-bin/somename.pl">
Name: <INPUT TYPE="text" SIZE=25 NAME="name" MAXLENGTH=45>
Look up: <INPUT TYPE="radio" NAME="info" VALUE="lookup" CHECKED>
Add to database: <INPUT TYPE="radio" NAME="info" VALUE="addb">
This is the html form:
<form METHOD="POST" ACTION="/cgi-bin/somename.pl">
Name: <INPUT TYPE="text" SIZE=25 NAME="name" MAXLENGTH=45>
Look up: <INPUT TYPE="radio" NAME="info" VALUE="lookup" CHECKED>
Add to database: <INPUT TYPE="radio" NAME="info" VALUE="addb">