[ back to toc ]

using "if (param()) {" with radio buttons

Date: 2002/06/07 15:21

Q:
I'm trying to get the param of a set of radio buttons using <INPUT
TYPE='radio' NAME='match1' VALUE='bye'> where the VALUE is changed from a
previous page from bye to user input. I can't figure out why this script
doesn't work.

if (param()){
print param('match1');
} else {
print "Nope";
}

Using perl 5.6
Thanks for any help
Ralph
A:
I assume that you us e the CGI.pm module. Other than that I can not
imagine what kind of function param() is.

On the other hand 'param()' is NOT a function but a method in CGI.pm thus
you need a

$qery = new CGI;

$query->param()

Regards,
Peter

[ back to toc ]