Pleas help. If I want to show user's input in the text box, then it's "if (!(defined $input->{''})). However, if I want to show that a user picks one of the options in the radio button, either "look up" or "add to database", what kind of syntax should I use?
I use $input {"info"} to refer to each of the radio button. How do I refer to one specific ratio button, let say if look up is picked, then do something after that?
<form METHOD="POST" ACTION="/cgi-bin/name.pl">
Account Number: <INPUT TYPE="text" SIZE=25 NAME="accountnum">
Look up: <INPUT TYPE="radio" NAME="info" VALUE="lookup" CHECKED>
Add to database: <INPUT TYPE="radio" NAME="info" VALUE="addb">
Thank you in advance.
I use $input {"info"} to refer to each of the radio button. How do I refer to one specific ratio button, let say if look up is picked, then do something after that?
<form METHOD="POST" ACTION="/cgi-bin/name.pl">
Account Number: <INPUT TYPE="text" SIZE=25 NAME="accountnum">
Look up: <INPUT TYPE="radio" NAME="info" VALUE="lookup" CHECKED>
Add to database: <INPUT TYPE="radio" NAME="info" VALUE="addb">
Thank you in advance.