Nigel Peck wrote:
> How can I check to see if foo has been passed, (and this is the
> important part), even if it was empty.
>
> e.g. bar.xsp?foo=&foo2=test
>
> I know I can do
>
> if (<param:foo/>)
>
> but that returns false when it doesn't exist and when it's empty.
>
> TIA
> Nigel
You can not directly. Empty string and undef are identical for perl.
You could use following perl code:
if (exists ${$cgi->param}{foo}) { ....
but it is apache specific with all the consequences...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]