The main purpose of Form Processor Pro is to perform some actions and process submitted data. In the form configuration file (config.php) you can specify the sequence and number of required actions, such as, sending one or several emails, making database queries, doing redirects, etc. Like a validator, each action has a name and custom parameters. Parameters (arguments) can be static as well as dynamic, depending on the submitted data.
Basic actions:
The most basic action is “page”. It is used to set the sequence and names of the pages.
Example:
With such a configuration, after the user fills out the form within index.html, he/she will see a parsed preview.html page and after that thank-you.html
However, the action's argument can be a template tag and depends on the submitted data. Like
In this case user will see the page, whose name was submitted in “page_from_form” field.
Action arguments may be very different, depending on the action it performs. It may be a set of field names, an SQL query, a path to template, etc.
Referencing form pages via full URLs
Often form pages are part of your PHP or ASP driven website. This means that you wish Form Processor Pro open form pages after they have been interpreted by the web server instead of showing the source code to the user. For that simply use full URLs for the form pages.
Syntax:
Example:
Form Processor Pro needs allow_url_fopen option enabled in PHP settings to allow this. If this option is disabled on your site, Form Processor Pro can use cURL library to open URLs. So if URLs do not work here, you can add this line to the form configuration and it should work normally then: