View Single Post
Old Aug 26th, 2007, 3:59 AM   #2
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 383
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
how about this ? -
php Syntax (Toggle Plain Text)
  1. <?
  2. $score=0;
  3.  
  4. if($_POST["question1"] == "a")
  5. {
  6. $score=$score+1;
  7. }
  8. if($_POST["question2"] == "b")
  9. {
  10. $score=$score+1;
  11. }
  12.  
  13. ?>

read some PHP tutorials FIRST ... ask questions later.

and i think : <input name="question1" value="a" type="radio"> should be
<input name="question1[]" value="a" type="radio"> but i;m not sure
__________________
Don't take life too seriously, it's not permanent !

Last edited by xavier; Aug 26th, 2007 at 4:13 AM.
xavier is offline   Reply With Quote