php test form
Posted: Tue Mar 23, 2004 8:48 pm
im trying to do a 50 question "test" with php and html form
so far i got 10 question on html, just to work with and ill bulid on to it later on
this is wut it looks like
my problem with this is witht the php, since the form has radio buttons i dont know how to get the info in php, with text input i'd use POST or GET but i really dont understand how to do it with this
so far i got 10 question on html, just to work with and ill bulid on to it later on
this is wut it looks like
Code: Select all
<form method="POST" action="ghetto.php">
1. You've ever used an album cover or old envelope for a dustpan.<br>
<input type=radio name=ques1 value=ques1_true> True <input type=radio name=ques1 value=ques1_false> False<br><br>
2. You've ever put foil on your TV antennas to get better reception.<br>
<input type=radio name=ques2 value=ques2_true> True <input type=radio name=ques2 value=ques2_false> False<br><br>
3. You've ever had to use pliers to turn your TV on. <br>
<input type=radio name=ques3 value=ques3_true> True <input type=radio name=ques3 value=ques3_false> False<br><br>
4. You had to come in the house when the street lights came on. <br>
<input type=radio name=ques4 value=ques4_true> True <input type=radio name=ques4 value=ques4_false> False<br><br>
5. You had a candy lady in your neighborhood. <br>
<input type=radio name=ques5 value=ques5_true> True <input type=radio name=ques5 value=ques5_false> False<br>
Was your house the candy lady?<br>
<input type=radio name=ques5_2 value=ques5_2_true> True <input type=radio name=ques5_2 value=ques5_2_false> False<br><br>
6. If you can count more than five police cars in your neighborhood on a daily basis.<br>
<input type=radio name=ques6 value=ques6_true> True <input type=radio name=ques6 value=ques6_false> False<br><br>
7. If you ever had to pick your own switch or belt.<br>
<input type=radio name=ques7 value=ques7_true> True <input type=radio name=ques7 value=ques7_false> False<br><br>
8. If you've ever been beaten with an extension cord.<br>
<input type=radio name=ques8 value=ques8_true> True <input type=radio name=ques8 value=ques8_false> False<br><br>
9. If you have ever had to walk to or home from school.<br>
<input type=radio name=ques9 value=ques9_true> True <input type=radio name=ques9 value=ques9_false> False<br><br>
10. If you've ever passed someone a note asking "Do you like me?" or "Can I have a chance?" check _yes, _no or _maybe.<br>
<input type=radio name=ques10 value=ques10_true> True <input type=radio name=ques10 value=ques10_false> False<br><br>
<input type="submit" value="Submit" name="submit">
</form>