Re: html-php related questions

From: Date: Wed, 26 Jul 2000 16:34:07 +0000
Subject: Re: html-php related questions
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1526@lists.php.net to get a copy of this message
On Wed, 26 Jul 2000, ROUSSY, ISABELLE wrote: > Hi, > > I want a checkbox checked if the following statement is true > if ($row_result[4]== 1) > so how do I code this in the bit of html > > <td width=48% height=19><input type=checkbox name=C1 value=ON>Account > collection &nbsp; </td> echo "<td width=48% height=19><input type=checkbox name=C1 value=". ($row_result[4] == 1 ? "on" : "off"). ">Account collection &nbsp; </td>"; Cheers, Soeren Staun-Pedersen - staun@netwarriors.org ------ "The internet is full, beat it" - Me.

« previous php.db (#1526) next »