Allibsus    
main page | buy now | interactive tour | demo | support | contact us
 



main page
buy now
tour
demo
support
contact us



Online Manual / Configuration Files / Preview form before submission

Command: templatePagePreview
Usage:

Allow your users to preview their form results before submission.

Arguments:

  • value="<0|1>"
    Specifies the location of the preview page template.

Example:

templatePagePreview value="/path/to/preview.html"
# Notice how we specified Preview as the page number for the sendMsg command. This tells the script to submit the form after the preview page.
sendMsg page="Preview" to="Joey Susbilla <contact@allibsus.com>" from="allibsus <allibsus@allibsus.com>" replyTo="allibsus <allibsus@allibsus.com>" subject="Submission to your form from [output name='Name']" template="/home/allibsus/public_html/mailpro/templates/recipient.html" contentType="text/html"

This shows you how to specify the location of the preview page template that will show after the user clicks on a button named '_previewPage'. And noticed how we are showing how to specify a sendMsg command to tell the script to send an e-mail after the Preview page.

<input type="submit" name="_previewPage" value="Preview">

This is the button that will allow your user to click on the 'Preview' button to preview the form results.

<form method="post" action="[output type='environment' name='PHP_SELF']?[output type='environment' name='MAILPRO_CONFIG'];previousPage=1;currentPage=Preview">
<output type="results" exclude="PHPSESSID, MAX_FILE_SIZE">
<input type="hidden" name="[name]" value="[value]">
</output>
<p><input type="submit" name="_previousPage" value="Edit"> &nbsp;&nbsp; <input type="submit" value="Submit"></p>
<table border="0" cellpadding="3" cellspacing="0">
<output type="results" exclude="PHPSESSID, MAX_FILE_SIZE">
<tr>
<td><strong>[name]:</strong></td>
<td>[value]</td>
</tr>
</output>
</table>

This is an example of a template for the preview page. It contains an Edit button which allows the user to go back to form page 1, notice the previousPage=1. And the currentPage=Preview which tells the script which form page is the current page. The Submit button allows the user to submit the form and have the form results sent out to an e-mail address.