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.
select name=display
option value=0True
option value=1False
/select
Now the contents of $display is an integer which will can
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.
select name=display
option value=0True
On Wednesday, March 20, 2002, at 04:23 PM, ROBERT MCPEAK wrote:
Whoops! Still won't work but that code should read:
echo form;
echo select name=\display\;
echo option value=\true\;
if ($display==true){echo selected;}
echo Display;
echo
3 matches
Mail list logo