Irma has a built-in mechanism to automate confirmation pages with a single
template. This mode will be activated, if you invoke the script
with the confirm
argument, such as
/cgi-bin/irma?confirm
.
A full template that supports confirmation and custom errors can be:
<!--SCRIPT--
£errors~[
<h3>Error!</h3>
£name^[Your name is missing!<br>]
£email^[Your email is missing!<br>]
]^[
£confirm^[
Thanks for your submission.
Email: $email
Comment: $comment
]]
-->
<!--CONFIRM--
Please confirm the following:
$name <$email>
-->
|
You can run, download and view the source of a demo performing actions similar to those described in this section from
http://irma.vestris.com/docs/demos/demo2-form.html
and
http://irma.vestris.com/docs/demos/demo2-template.html
.