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. select name=display option value=0True option value=1False /select Now the contents of $display is an integer which will can

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. select name=display option value=0True

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 form; echo select name=\display\; echo option value=\true\; if ($display==true){echo selected;} echo Display; echo