Re: [PHP] Fwd: html form select list "selected"

2002-03-20 Thread Erik Price
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

RE: [PHP] Fwd: html form select list "selected"

2002-03-20 Thread ROBERT MCPEAK
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

RE: [PHP] Fwd: html form select list "selected"

2002-03-20 Thread Kevin Stone
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