next up previous contents index
Next: A simple PHP-script that Up: Examples Previous: Examples   Contents   Index


A simple HTML-Form (HTML)

The following example generates a simple stimulus (a verse) and prompts the user to complete this verse (from Dante's Divine Comedy, the first lines of the Purgatorio in the translation of Longfellow).

The example will look as follows on the screen:

Please complete the following verse

To run o'er better waters hoists its sail
The little vessel of my genius now,
That leaves behind itself a sea so cruel;
Here is the underlying HTML.

<html>
<body>
<FORM METHOD=POST ACTION=dante.php3>
<h4>Please complete the following verse</h4>
To run o'er better waters hoists its sail<BR>
  The little vessel of my genius now,<BR>
  That leaves behind itself a sea so cruel;<BR>
<INPUT TYPE=TEXT NAME=POEM SIZE=30>
<INPUT TYPE=SUBMIT VALUE="Ready">
</FORM>
</body>
</html>


next up previous contents index
Next: A simple PHP-script that Up: Examples Previous: Examples   Contents   Index
Oliver Kirchkamp