passing info to another page

Results 1 to 2 of 2

Thread: passing info to another page

  1. #1
    Bobby Guest

    Default passing info to another page

    I have a question form with 10 questions and each question has 4 choices for answers(a-b-c-d). How do I get the answers they select to show up on the next page and then how do I compare their answers to the correct ones in the database (ms access)and display their score.

  2. #2
    Sven Cipido Guest

    Default RE: passing info to another page

    Hello,<BR><BR>You can create post action on your form where you call a new ASP-page. <BR>Example : &#060;form action="check.asp" method="POST" name="Form1"&#062;<BR><BR>In the check.asp you do the check for the answers. Before you can do this, you have to read all the form-fields. thsi can be done with following routine :<BR> For Each Key In Request.Form<BR> If Key = "Name" then sname = Request.Form(Key)<BR> Next<BR><BR>Where "Name" is the name of the field you want to read. So, first you read in the For-routine all your fields and put the value in a variabele. Now you can check the variabele with the correct answers.<BR><BR>Hope this will help you.<BR><BR>kind regards<BR>Sven Cipido

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts