MailPost
Custom success screen with data substitution

MailPost can display a custom success screen by using the success variable. If this variable points to a fully qualified URL (http://www.my-domain.com/success.html) MailPost will redirect the user to that page. However, if the success variable contains a filename of an HTML document, MailPost will display that document as the success page. Using that document, MailPost will also perform variable substitution, just as it does with template files.

For this example, you will be able to select from 3 different success variables -- none, a URL, and an HTML file. Selecting "none" will display MailPost's standard success page. Selecting "URL" will send the user to that URL. Selecting "HTML" will display the HTML page with variable substitution.

The following actions were taken to produce the result:

  1. Create the form and insert the success variable
  2. Create the form's template file that will be used with this form. This example's template file is named template.txt
    To: mailpost@mcenter.com
    From: mailpost@mcenter.com
    Subject: Success page example
    
      Thanks, [name] for filling out this form.

  3. Create the "success.html" file. This page will not do any variable substitution. It can be on any server, anywhere.
  4. Create the "success-sub.html" file. This is the file we will use to generate a custom success page with variable substitution. It resides in the same directory structure as the form's template file.

Note that all of these files can be named whatever you wish.

  

Success page type:

Name:

  
                 
  
 

MailPost Homepage