On Wednesday, March 20, 2002, at 04:23 PM, ROBERT MCPEAK wrote:
> Whoops! Still won't work but that code should read:
>
> echo "";
> echo "";
> echo " if ($display==true){echo "selected";}
> echo ">Display";
> echo " if ($display==false){echo
Still doesn't work. What gives?
>>> "Kevin Stone" <[EMAIL PROTECTED]> 03/20/02 04:31PM >>>
The contents of $display are a string so you must have quotes
aroud it in the comparison statement.
if ($display == 'false') // should work.
Alternatively you could do.
True
False
Now the contents o
The contents of $display are a string so you must have quotes
aroud it in the comparison statement.
if ($display == 'false') // should work.
Alternatively you could do.
True
False
Now the contents of $display is an integer which will can be interpreted
as a boolean value (true or false). Th
3 matches
Mail list logo