Re: Quick question
| From: | Marek Kilimajer | Date: | Fri, 14 Jun 2002 14:37:35 +0000 |
| Subject: | Re: Quick question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102213@lists.php.net to get a copy of this message | ||
Quick answer:
<input type="checkbox" name="name" value="value"<?= ( $HTTP_POST_VARS['name']=='value' ? ' checked' : '' ) ?>
the same for radio boxes.
Dan McCullough wrote:
I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it so that the person doesnt lose everything, currently they will lose radio button information or checkbox information. Can someone tell me how to best keep it so the checkboxes stay checked or radio buttons stay selected. thanks, dan __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com