in reply to Checking for empty CGI params; this isn't working

better to use defined rather than length here.

elsif( defined( param('tele') || param('mobile') ) ) {
Update: hrmph. length should work just as well.
elsif( length( param('tele') || param('mobile') ) ) {
works for me.

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: Checking for empty CGI params; this isn't working
by andrew (Acolyte) on Jul 14, 2002 at 17:04 UTC
    Even if I enter a tele it still gives me the error
      perhaps you mean $q->param() ? i don't know anything about your param sub, so i can't comment further. if it's an object method, you left off the object.

      ~Particle *accelerates*