Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if(!$q->param('name') || !$q->param('site') || !$q->param('siteid') || + !$q->param('email') || !$q->param('pass') || !$q->param('repass') || + !$q->param('des')) { &error("You Forgot some required fields"); } elsif($q->param('email') !~ /^\S+@\S+\.\S+/g) { &error("Your email is in a invalid format"); } elsif($q->param('pass') ne $q->param('repass')) { &error("Your passwords don't match"); } else { }
elsif($q->param('siteid') eq @directory) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check CGI params in if/elsif
by cLive ;-) (Prior) on Jun 11, 2002 at 09:28 UTC | |
by Anonymous Monk on Jun 11, 2002 at 11:20 UTC | |
|
Re: Help
by talexb (Chancellor) on Jun 11, 2002 at 04:08 UTC | |
by snowcrash (Friar) on Jun 11, 2002 at 08:27 UTC | |
by talexb (Chancellor) on Jun 11, 2002 at 12:51 UTC | |
|
Re: How to check CGI params in if/elsif
by DamnDirtyApe (Curate) on Jun 11, 2002 at 05:58 UTC | |
|
Re: How to check CGI params in if/elsif
by alien_life_form (Pilgrim) on Jun 11, 2002 at 07:57 UTC |