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
>
>  
>



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

Reply via email to