MarleneAyers
asked on
PHP Sticky checkboxes
I have a form with a series of checkboxes. If the user does not complete other information on the form, user submits, the form is redisplayed and I want the completed fields to be sticky. (I think that is the right term fields already completed to redisplay) including the checkboxes.
<input type="checkbox" name='otherMarketing[]' value="membership" id="membership" <?php if ($_REQUEST[otherMarketing] [membershi p]=='membe rship') { echo "checked";} ?> />
<input type="checkbox" name='otherMarketing[]' value="membership" id="membership" <?php if ($_REQUEST[otherMarketing]
You'd have to name the checkbox 'otherMarketing[membership ]' for that to work as written.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.