Create a simple html document, form.html
consisting of
the following html code. Use your favorite html editor to do so. If you are
using a visual editor, simply create a new form and edit its properties
accordingly.
<html>
<head>
<title>Irma Quickstart Form</title>
</head>
<body>
<form
method="post"
action="http://irma.vestris.com/cgi-bin/irma">
Your name: <input type="text" name="name"><br>
Your email: <input type="text" name="email"><br>
<input type="submit" name="submit" value="Post Form!">
<input
type="hidden"
name="template"
value="http://www.foo.com/irma/template.html">
</form>
</body>
</html>
|
You may have notices that the form contains a hidden tag, called
template
, which defines which template to use for the
results of the form post to appear. This is the form you are about to create now.
Create an html file, called template.html
with the following contents:
<html>
<head>
<title>Irma Quickstart Reply</title>
</head>
<body>
<!--SCRIPT--
Hello $name!
<br><br>
Your email address is $email\.<br>
Form posted on $date\.
-->
</body>
</html>
|
Modify the value of the hidden tag on the first form to be the full url of
the second template.html file.
Navigate to the form.html document, enter some data and click on the post button.
You will see the results rendered by Irma.
You can run, download and view the source of both forms at
http://irma.vestris.com/docs/guide/first-form.html
and
http://irma.vestris.com/docs/guide/first-template.html
.