RE: [phplib] oohform questions From: Chris Johnson (chris <email protected>)
Date: 02/27/01

I'm not using OOHFORM so I can't answer your first question.

The answer to your second question is no. You can search for an empty
string, e.g. $foo = "", with a regular expression, but not for a NULL
value.

You probably want to check with "isset()" which I believe will return
false for a NULL value.

..chris

> -----Original Message-----
> From: Kevin Tran [mailto:kevin <email protected>]
> Sent: Sunday, February 25, 2001 4:09 PM
> To: Phplib
> Subject: [phplib] oohform questions
>
>
> Hi,
>
> If a have a select field, which is not compulsary for the
> user to select. How can I have oohform validate the select
> field if the user selected the data and ignore the validation
> if the user did not select anything from the select field?
>
> Also, how can I check for a NULL using regular expression
> with a string?
>
> Regards,
> Kevin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>