
May 24th, 2000, 11:26 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Karthik Vaidyanathan.V (karthikvn@future.futsoft.com;karthikvv@india.com) </b></i><br />Full Code<br /><br /><html><br /><body><br /><form name=quiz method=post><br />Q1. What is my name? <br><br /><%if request("q1") = "" then%><br /><input type=radio name=q1 value = 1> V.G<br><br /><input type=radio name=q1 value = 2> Gan<br><br /><input type=radio name=q1 value = 3> V.Ganapathy<br><br /><input type=submit name=submit value="submit"><br /><%else<br /> q1 = request("q1")<br /> Select Case q1<br /> Case 1:%><br /><input type=radio name=q1 value = 1 CHECKED> V.G<br><br /><input type=radio name=q1 value = 2> Gan<br><br /><input type=radio name=q1 value = 3> V.Ganapathy<br><br /> <%Case 2:> <br /><input type=radio name=q1 value = 1> V.G<br /><input type=radio name=q1 value = 2 CHECKED> Gan<br /><input type=radio name=q1 value = 3> V.Ganapathy<br /> <%Case 3:> <br /><input type=radio name=q1 value = 1> V.G<br /><input type=radio name=q1 value = 2> Gan<br /><input type=radio name=q1 value = 3 CHECKED> V.Ganapathy<br /><%End Select%><br /><script><br /><%if CInt(q1) = 3 then%><br /> alert("You are right")<br /><%else%><br /> alert("You are wrong")<br /><%end if%><br /></script><br /><%end if%><br /></body><br /></html><br /> <br /><br /><br /><br />------------<br />V.Ganapathy at 5/24/2000 7:52:16 AM<br /><br />I am developing a simple quiz form,which has several questions with possible answers in the form of radio buttons.<br />After entering the selections,the results are displayed on the same page.Questions are:<br /><br />1.The form does not show the radio buttons selected for each question by the user,though I have his selections through request.form code.All the buttons are blank.<br />How do I get the form to show his selections.<br /><br />2.If there are numerous users running the quiz at the same time,how does ASP distinguish which user slected what? Is there a way to make the selection unique?<br />Thanks for any help.<br /><br /><br />
|