<input type="checbox" value="1" name="check"<? if($_POST[check] == 1) {
print ' checked';}?>>


On Sat, 15 Jun 2002 04:53:11 +1200, Dan McCullough wrote:

> I'm trying to evaluate form submissions.  When I return a form
> submission cause of a missing field I want the radio and checkboxes to
> reflect what the client submitted.  So if somone forgets to fill in
> their address, but has done everything else fine, I dont want them to
> have to refill out the form.
> So how would I in PHP say if $var == "value1" then this radio button is
> checked?  And how do I do it and keeping the code compact?
> =====
> -------------------------------------------------------- "Theres no such
> thing as a problem unless the servers are on fire!"
> __________________________________________________ Do You Yahoo!? Yahoo!
> - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

 Jason Morehouse ([EMAIL PROTECTED])
 Netconcepts LTD, Auckland, New Zealand    
 * Linux: because rebooting is for adding hardware.

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

Reply via email to