>>>>> ""Omega" == "Omega -1911" <[EMAIL PROTECTED]> writes:

"Omega> On 10/18/06, Robert Hicks <[EMAIL PROTECTED]> wrote:
>> I have this as an option field:
>> 
>> <option value="5">Business Objects Support</option>
>> 
>> Is the "value" what gets passed back? In this case "5"?
>> 

"Omega> The associated *name* and *value* are passed on to the Perl script if
"Omega> you are pointing your form to a Perl script. For example, you have a
"Omega> drop down list of 10 options like your above example, and the name of
"Omega> the NAME of the form was BUSINESS TYPE then your Perl script would
"Omega> read the form data as such:

"Omega> $FORM{BUSINESS TYPE} = 5;

Only if you're using ancient perl4-style CGI modules.  The modern CGI.pm
decodes this using the "param" function:

        my $value = param('BUSINESS TYPE'); # returns "5"

Please don't answer other CGI questions until you've come up to at
least the mid-90's.  Thank you.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to