- Jun 13, 2000
- 26,391
- 1,780
- 126
I've been working on a website for my 10 year class reunion. I've done SOOOO much....
I created a registration page that allows you to select whether or not you can attend. (the point is that even if someone can't attend, I'll be able to get their contact info for future communications)
So..they select radio buttons to select whether or not they can attend...then a button for how many guests they plan on bringing.
I created an attendance update page that allows them to change this... Does anyone have an idea of the right way to do this? I have 2 variables: attend and guests both are INTs.
Do you plan on attending?
<input type="radio" id="attend" name="attend" value="0" <?php if (isset($_POST['attend']) && $_POST['attend'] === '1' ) { echo 'checked="checked"';}?>/>Yes
<input type="radio" id="attend" name="attend" value="1" <?php if (isset($_POST['attend']) && $_POST['attend'] === '2' ) { echo 'checked="checked"'; } ?>/>No
I created a registration page that allows you to select whether or not you can attend. (the point is that even if someone can't attend, I'll be able to get their contact info for future communications)
So..they select radio buttons to select whether or not they can attend...then a button for how many guests they plan on bringing.
I created an attendance update page that allows them to change this... Does anyone have an idea of the right way to do this? I have 2 variables: attend and guests both are INTs.
Do you plan on attending?
<input type="radio" id="attend" name="attend" value="0" <?php if (isset($_POST['attend']) && $_POST['attend'] === '1' ) { echo 'checked="checked"';}?>/>Yes
<input type="radio" id="attend" name="attend" value="1" <?php if (isset($_POST['attend']) && $_POST['attend'] === '2' ) { echo 'checked="checked"'; } ?>/>No