Re: Evaluation. Easy Question but I need some help
| From: | Jason Morehouse | Date: | Sat, 15 Jun 2002 19:04:04 +0000 |
| Subject: | Re: Evaluation. Easy Question but I need some help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102319@lists.php.net to get a copy of this message | ||
<input type="checbox" value="1" name="check"<? if($_POST[check]
== 1) {
print ' checked';}?>>
-J
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 (jm@netconcepts.com)
Netconcepts LTD, Auckland, New Zealand
* Linux: because rebooting is for adding hardware.