Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is my current code.<dl compact> <dt><b>ChangeButton</b> <dd>:<i>Change</i>:<br> <dt><b>Department</b> <dd>:<i>Information Systems</i>:<br> <dt><b>FName</b> <dd>:<i>Kelly</i>:<br> <dt><b>HireDate</b> <dd>:<i>12/04/00</i>:<br> <dt><b>LName</b> <dd>:<i>Berry</i>:<br> <dt><b>Picture</b> <dd>:<i>03_02</i>:<br> <dt><b>RecID</b> <dd>:<i>5</i>:<br> <dt><b>Title</b> <dd>:<i>Web Developer</i>:<br> </dl> Content-type: text/html <html> <head> <title>Error: Missing field FName </title> </head> <body> <h1>Error: Missing field FName </h1>
Any help would be greatly appreciated. Prince99 "Too Much Is Never Enough"foreach $field (qw(FName LName Department Title HireDate Picture RecID +)) { &CgiDie("Error: Missing field $field\n") unless defined $input->{$ +field}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Form Verification
by Fastolfe (Vicar) on Jan 05, 2001 at 20:16 UTC | |
|
Re: Form Verification
by mrmick (Curate) on Jan 05, 2001 at 20:19 UTC | |
|
Re: Form Verification
by Nimster (Sexton) on Jan 06, 2001 at 00:45 UTC | |
|
Re: Form Verification
by dkubb (Deacon) on Jan 15, 2001 at 16:25 UTC |