return to first page linux journal archive
keywordscontents

Listing 4. The HTML form for Updating the Quiz File

<HTML>
<Head>
<Title>
Create a quizfile
</Title>
</Head>

<Body>
<Form method="POST"
action="/cgi-bin/create-quizfile.pl">
<P>What quizfile would you like to create?
<input type="text" name="quizfile"></P>

<P>Question text: <input type="text"
name="question-1" size="30"></P>
<P>Answer A: <input type="text"
name="answer-a-1" size="30"7gt;</P>
<P>Answer B: <input type="text"
name="answer-b-1" size="30"></P>
<P>Answer C: <input type="text"
name="answer-c-1" size="30"7gt;</P>
<P>Answer D: <input type="text"
name="answer-d-1" size="30"></P>

<P><select name="correct-1">
<option a>a
<option b>b
<option c>c
<option d>d
</select></P>

<HR>

<P>Question text: <input type="text"
name="question-2" size="30"></P>
<P>Answer A: <input type="text"
name="answer-a-2" size="30"></P>
<P>Answer B: <input type="text"
name="answer-b-2" size="30"></P>
<P>Answer C: <input type="text"
name="answer-c-2" size="30"></P>
<P>Answer D: <input type="text"
name="answer-d-2" size="30"></P>

<P><select name="correct-2">
<option a>a
<option b>b
<option c>c
<option d>d
</select></P>


<HR>

<P>Question text: <input type="text"
name="question-3" size="30"></P>
<P>Answer A: <input type="text"
name="answer-a-3" size="30"></P>
<P>Answer B: <input type="text"
name="answer-b-3" size="30"></P>
<P>Answer C: <input type="text"
name="answer-c-3" size="30"></P>
<P>Answer D: <input type="text"
name="answer-d-3" size="30"></P>

<P><select name="correct-3">
<option a>a
<option b>b
<option c>c
<option d>d
</select></P>

<HR>

<P>Question text: <input type="text"
name="question-4" size="30"></P>
<P>Answer A: <input type="text"
name="answer-a-4" size="30"></P>
<P>Answer B: <input type="text"
name="answer-b-4" size="30"></P>
<P>Answer C: <input type="text"
name="answer-c-4" size="30"></P>
<P7gt;Answer D: <input type="text"
name="answer-d-4" size="30"></P>

<P><select name="correct-4">
<option a>a
<option b>b
<option c>c
<option d>d
</select></P>

<input type="submit">

</Form>
</Body>
</HTML>