<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015935" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015935</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092524</link>
    <description> &lt;p&gt;While looking at the code I understand each line.  I would have never came up with this way of collecting the data and it is brilliant.  Unfortunately I have changed to a different format that I think is a little easier.&lt;/p&gt;
&lt;p&gt;I am only allowing 1 example per page.  The page submits to itself so it just loops through the questions until none are available.&lt;/p&gt;
&lt;p&gt;The first time it&#039;s loaded the querystring is empty so it pulls all exampleIDs into an array.  The array is then joined into a variable and sent through the querystring.  The page will load the next one each time until it&#039;s at the end where it will redirect to a finished page.&lt;/p&gt;
&lt;p&gt;The reason I did this was to simplify the code and to make it look cleaner on the page.  If you have any suggestions please let me know.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Oct 2001 14:13:46 +0000</pubDate>
 <dc:creator>artsapimp</dc:creator>
 <guid isPermaLink="false">comment 1092524 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092519</link>
    <description> &lt;p&gt;Make sure you have an input box for ExampleID (probably hidden), then you will have to sort your Request.Form values so you can save them the way you want. The way I do it, is I create a hidden text box that I put all the input field names into, in the order I want, for example:&lt;/p&gt;
&lt;p&gt;Then on my form handler page the first thing I do is parse that text box into an array:&lt;/p&gt;
&lt;p&gt;strPassSort = Request.Form(&quot;txtSortOrder&quot;)&lt;br /&gt;
strPassSort = Split(strPassSort,&quot;,&quot;)&lt;/p&gt;
&lt;p&gt;Now I have an array with the field names in the right order, now I want to assign the values to them:&lt;/p&gt;
&lt;p&gt;ReDim SaveArray(UBound(strPassSort))&lt;/p&gt;
&lt;p&gt;For intArrayCtr = LBound(strPassSort) To UBound(strPassSort)&lt;br /&gt;
SaveArray(intArrayCtr) = Trim(Request.Form(strPassSort(intArrayCtr)))&lt;br /&gt;
Next&lt;/p&gt;
&lt;p&gt;Now I have another array with all the values in the right order, so now you can setup another loop to insert them into the database, if you need help with that, let me know.&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Oct 2001 12:55:36 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1092519 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092422</link>
    <description> &lt;p&gt;I guess I&#039;m not understanding 100%.  I have created 3 variables on the receiving page:&lt;/p&gt;
&lt;p&gt;varIdentifier &#039;Autonumber&lt;br /&gt;
varExample &#039;Example Number&lt;br /&gt;
varQuestion &#039;Question&lt;/p&gt;
&lt;p&gt;I am running a for each loop referring to request.form&lt;/p&gt;
&lt;p&gt;I am pulling the correct information but I&#039;m not sure how to add it to my database correctly.&lt;/p&gt;
&lt;p&gt;Below is my database structure (a little different than yours but same idea)&lt;/p&gt;
&lt;p&gt;Examples&lt;br /&gt;
--------&lt;br /&gt;
ExampleID &#039;Autonumber&lt;br /&gt;
Example &#039;Memo - Explains the example&lt;br /&gt;
Created &#039;Question&lt;br /&gt;
Queue &#039;Question&lt;br /&gt;
Status &#039;Question&lt;br /&gt;
WorkedOn &#039;Question&lt;br /&gt;
WorkedOnSubcode &#039;Question&lt;br /&gt;
Found &#039;Question&lt;br /&gt;
Cause &#039;Question&lt;br /&gt;
Resolution &#039;Question&lt;br /&gt;
DateFrom &#039;Show this example starting this date&lt;br /&gt;
DateTo &#039;Stop showing this example on this date&lt;br /&gt;
Bonus &#039;Yes/No Is this a bonus question?&lt;/p&gt;
&lt;p&gt;For each question I hvae a database with an ID and Text field for the answers available.&lt;/p&gt;
&lt;p&gt;i.e.&lt;br /&gt;
Found&lt;br /&gt;
-----&lt;br /&gt;
FoundID&lt;br /&gt;
Found&lt;/p&gt;
&lt;p&gt;Answer&lt;br /&gt;
------&lt;br /&gt;
Example &#039;ExampleID&lt;br /&gt;
User &#039;Linked to User Table&lt;br /&gt;
Created &#039;Answer&lt;br /&gt;
Queue &#039;Answer&lt;br /&gt;
Status &#039;Answer&lt;br /&gt;
WorkedOn &#039;Answer&lt;br /&gt;
WorkedOnSubcode &#039;Answer&lt;br /&gt;
Found &#039;Answer&lt;br /&gt;
Cause &#039;Answer&lt;br /&gt;
Resolution &#039;Answer&lt;br /&gt;
Date &#039;Date Entered&lt;br /&gt;
Time &#039;Time Entered&lt;br /&gt;
Score &#039;Score for this Example&lt;/p&gt;
&lt;p&gt;How would I run through the answers and say:&lt;br /&gt;
From 1 through 8 add to database with it&#039;s exampleID&lt;br /&gt;
From 9 through 16 add to database with it&#039;s exampleID&lt;br /&gt;
From 17 through 24 add to database with it&#039;s exampleID&lt;br /&gt;
From 25 through 32 add to database with it&#039;s exampleID&lt;br /&gt;
From 33 through 40 add to database with it&#039;s exampleID&lt;/p&gt;
&lt;p&gt;Thanks for any help.&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Oct 2001 17:04:03 +0000</pubDate>
 <dc:creator>artsapimp</dc:creator>
 <guid isPermaLink="false">comment 1092422 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thank you</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092421</link>
    <description> &lt;p&gt;That is pretty much the setup I&#039;m using.  The unique identifier for each question is where I was having a problem.  I think that is going to be the key.&lt;/p&gt;
&lt;p&gt;I know there will always be 8 questions each and 5 examples per page.  With this I know the unique numbers should vary from 1 To 40.&lt;/p&gt;
&lt;p&gt;The format I&#039;ve chosen now which is working correctly is:&lt;br /&gt;
Name=example &amp;amp; &quot;,&quot; &amp;amp; Question&lt;/p&gt;
&lt;p&gt;Now I should use:&lt;br /&gt;
Name=x &amp;amp; &quot;,&quot; &amp;amp; example &amp;amp; &quot;,&quot; &amp;amp; Question&lt;br /&gt;
(Where x is the autonumber in this application)&lt;br /&gt;
Is that right?&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Oct 2001 16:39:57 +0000</pubDate>
 <dc:creator>artsapimp</dc:creator>
 <guid isPermaLink="false">comment 1092421 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092411</link>
    <description> &lt;p&gt;You have to be a little careful when you&#039;re pulling generic form values like that, the order you get the values in doesn&#039;t always match the order they are in the page (actually it never matches). So for each form I would add a unique integer via a counter, so in the first form the field would be &quot;1Question1&quot;, in the second it would be &quot;2Question1&quot;, etc. As for the database setup, I would do the following:&lt;/p&gt;
&lt;p&gt;QuizMain table&lt;br /&gt;
--------------&lt;br /&gt;
QuizID&lt;br /&gt;
QuizTitle&lt;/p&gt;
&lt;p&gt;QuizQuestion table&lt;br /&gt;
------------------&lt;br /&gt;
QuizQuestionID&lt;br /&gt;
QuizID --&amp;gt; link to QuizMain&lt;br /&gt;
QuizQuestion&lt;/p&gt;
&lt;p&gt;QuizAnswer table&lt;br /&gt;
----------------&lt;br /&gt;
QuizAnswerID&lt;br /&gt;
QuizQuestionID --&amp;gt; link to QuizQuestion&lt;br /&gt;
QuizUserID --&amp;gt; link to a user table?&lt;br /&gt;
QuizAnswer&lt;/p&gt;
&lt;p&gt;This setup assumes that you already have a user table of some kind and that the quiz answers are text.&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Oct 2001 16:11:03 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1092411 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-based-online-quiz#comment-1092408</link>
    <description> &lt;p&gt;I usually create dynamic form names for the fields.  Usually Example number and Questions number.  Then loop through the examples and 1-5, and grab your vars/values and do whatever with them&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;For Example=1 To 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Question=1 To 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer = Request.Form(Example &amp;amp; &amp;quot;_&amp;quot; &amp;amp; Question)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039; do something with it&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;Next&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Oct 2001 16:04:44 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1092408 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
