in reply to Checking for the existence of a passed parameter.
use CGI qw(param); ... my $verify = param("verify"); if (defined $verify) { # was passed... if ($verify eq "yes") { # was yes... } else { # not yes... } } else { # not passed... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking for the existence of a passed parameter.
by Aristotle (Chancellor) on Nov 11, 2003 at 20:02 UTC | |
by merlyn (Sage) on Nov 11, 2003 at 20:21 UTC | |
by Aristotle (Chancellor) on Nov 11, 2003 at 20:34 UTC |