in reply to Re^10: DBI, place holders and CGI forms
in thread DBI, place holders and CGI forms
There is no null keyword in Perl.
The value you're most likely thinking of is undef, and that's what $cgi->param(...) returns if no such field is found. So most likely, the below code already does what you might want:
$fieldname = $cgi->param('fieldname')
Note that the browser might send empty strings instead of missing values, depending on how your form is set up. But that's a different problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: DBI, place holders and CGI forms
by Anonymous Monk on Jun 20, 2011 at 09:43 UTC |