[EMAIL PROTECTED] wrote:

> On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote:
> 
> sub missing_params {
> foreach (keys %form_fields) {
>         next if defined param($_);
>         push @missing,$form_fields{$_};
> }
> return scalar(@missing);
> }


what if a value is the null string?  you need to check *both* is it 
defined *and* is it a minimum length.  otherwise a requestlike this:

http://yourdomain/cgi-bin/file.cgi?company_name=&job_id=&job_title=

will pass your test.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to