On 21 Jul 01, at 12:07, Justin French wrote:
> I'm a semi-newbie, and if I want to check if a variable is set, or
> contains something, i've been doing it like this:
>
> if($var != "") { ... }
if ($var)
{
// $var has been set
} else {
// $var has not been set
}
will do what you want.
CYA, Dave
-----------------------------------------------------------------------
Outback Queensland Internet - Longreach, Outback Queensland - Australia
http://www.outbackqld.net.au mailto:[EMAIL PROTECTED]
-----------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]