Nabi - do you need help w/the html or the php? Is all you are wanting is to check the value of the data they enter and either show a conf message or redisplay the form?
Here is the html synax for a radio group:
<form name="form1" method="post" action="myform.php">
<p>
<label>
<input type="radio" name="I_Am_A" value="man">
Man</label>
<br>
<label>
<input type="radio" name="I_Am_A" value="woman">
Woman</label>
<br>
<label>
<input type="radio" name="I_Am_A" value="girl">
Girl</label>
<br>
<label>
<input type="radio" name="I_Am_A" value="boy">
Boy</label>
<br>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
When the form is submitted, the variable $_POST["I_Am_A"] will have a value of either man, woman, boy or girl depending on what was checked.
Here is a basic structure of a self contained form that will check the value of a variabe - I_Am_A and either display a confirmation page or redisplay the form with an error message. I do not have time to syntax it all out, but the tutorials I gave you can teach you to do that!
You will have 3 basic sections - 1. process the form, 2. confirmation, 3. the form itself.
- Check if I_Am_A is set, meaning does the variable exist yet. If not, the form has not yet been filled out at all. If so, process the form. If not, show the form.
If the variable I_Am_A exists:
- Check the value of I_Am_A. If it matches your criteria, display a conf message.
2.a if it does not match, add an error message to your form block, then show the block
If the variable did not exist or did not match:
- Build a form display block as a variable that can be echoed. The form action would be the name of the php page that the form is on.
If none of that makes sense, go back to the tutorials 🙂