Re: Checkbox in PHP form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 11/08/2009 11:39 PM Ernie Kemp said the following:
> Need some help here with checkboxes in an html form.
> 
>  
> 
> My issue is I have a form that needs to be viewed with checkboxes filled
> in depending on the values in the table.
> 
>  
> 
> I tried:
> 
> <INPUT class=text id="myCheck1" type=checkbox <?php if ( $row[33] =
> 'no') { echo "checked=yes";  } else { echo '';  } ?> value="PFDs"
> name=f_sequipment1></b><font size="2">PFDs<b>
> 
> but the checkbox field is always checked.

It should be $row[33] == 'no'

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux