<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Web-Site-Scripts.com - Actions</title>
        <link>https://www.web-site-scripts.com/knowledge-base/category/28</link>
        <description><![CDATA[Root / Form Processor Pro / Manual / 5.x / Actions]]></description>
        <language>en-us</language>
        <generator>KnowlageBase RSS Generator</generator>

         
                <item>
                        <title>Unique Submissions</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00165</link>
                                    <description><![CDATA[<p>If you want to limit your form submissions by one or several times by the same person, use the unique_submits action in the config.php file</p>
<p>Syntax:</p>
<div class="preformatted">
<div class="preformattedContent">unique_submits = &lt;number&gt;, &lt;period&gt;</div></div>
<p>Where &lt;number&gt; is the number of times the form can be submitted during any &lt;period&gt; of time.</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">unique_submits = 1, 3M</div></div>
<p>Means that form can be submitted just once per three months. <br></p>
<p>You can specify a period with any integer number followed by a letter exterminating a period:</p>
<ul><li>S - seconds</li><li>I - minutes</li><li>H - hours</li><li>D - days</li><li>M- months</li><li>Y - years</li></ul>
<p>Examples: <br></p>
<div class="preformatted">
<div class="preformattedContent">
<p>6H - for 6 hours</p>
<p>30I - for 30 minutes</p>
<p>5D - for 5 days</p>
<p>1Y - for 1 year</p>
</div></div><p>By default the message that user has submitted the form already is shown on a separate error page with white background. If you would like to show the message on the first form page, add this line to the form configuration (in the config.php file):</p><p><div class="preformatted">
<div class="preformattedContent">
unique_data_submission = first_page</div>
</div>
<p><br></p></p>]]></description>
                                    <pubDate>Mon, 15 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00165</guid>
                    </item>
                <item>
                        <title>Referers</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00160</link>
                                    <description><![CDATA[<p><span style="font-family: Arial, FreeSans, Helvetica, sans-serif; line-height: 17px; background-color: rgb(255, 255, 255); ">"Referers" is the feature that denies access to Form Processor Pro from domains that are not listed. This feature is optional. If it is set, the form can be submitted only from the specified domains. Otherwise submissions for all domains are allowed.</span>
</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">referers = www.yourdomain.com, localhost, web-site-scripts.com<br>referers = www.yourdomain.com</div></div>
<p><p>You can specify multiple domains separated by commas. You can use "localhost" for a referer if the form is located on the same server as Form Processor Pro is.</p><p>Also you can specify what protocols can be used to submit the form. By default both http:// and https:// are allowed, but you can impose a restriction.</p><p>Syntax:</p><p><div class="preformatted">
<div class="preformattedContent">
referers_protocol = list or protocols</div>
</div>
<p>Examples:</p><p><div class="preformatted">
<div class="preformattedContent">
referers_protocol = http</div>
</div>
<div class="preformatted"><div class="preformattedContent">referers_protocol = http, https</div>
</div>
<p><br></p></p></p></p>]]></description>
                                    <pubDate>Mon, 15 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00160</guid>
                    </item>
                <item>
                        <title>Simple Redirect</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00159</link>
                                    <description><![CDATA[<p>This action allows you to redirect form users to a predefined URL</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">page = ../index.html<br>redirect = http://somesite.com/</div></div>]]></description>
                                    <pubDate>Mon, 15 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00159</guid>
                    </item>
                <item>
                        <title>HTML email Overview</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00152</link>
                                    <description><![CDATA[<p><br>You can also send HTML-emails with Form Processor Pro. HTML-email templates are used to send HTML-emails.</p>
<p>The entry in the config.php for HTML-email templates is the same as for the plain text mail template.</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">email = ../somedir/email.txt</div></div>
<p>The structure of the HTML-email template is similar to the plain text template. You should only add the following header:</p>
<p>Syntax:</p>
<div class="preformatted">
<div class="preformattedContent">Format: html</div></div>
<p>So the headers of the mail template will look like following:</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">To: recepient@somehost.com<br>From: sender@somehost.com<br>Subject: This is an email subject<br>Format: html<br><br>This is an email body.</div></div>
<div class="info">
<div class="infoHeader">Note:</div>
<div class="infoContent">
An empty line should be inserted after the headers. Then the email body follows.</div></div>
<p>The body of the HTML-mail is similar to an HTML-page and most of the html tags can be used there, however some of tags should not be used in it. They may cause the email to display incorrectly.</p>
<p>Avoid these tags&nbsp; in an HTML email-template:</p>
<ul><li>DOCTYPE</li><li>HTML tag &lt;HTML&gt;&lt;/HTML&gt;</li><li>BODY tag &lt;BODY&gt;&lt;/BODY&gt;</li><li>All Meta tags &lt;META&gt;</li><li>Head tag &lt;HEAD&gt;&lt;/HEAD&gt;</li><li>Base tag &lt;BASE&gt;</li><li>Link tag &lt;LINK&gt;</li><li>Script tag &lt;SCRIPT&gt;&lt;/SCRIPT&gt;</li><li>Title tag &lt;TITLE&gt;&lt;/TITLE&gt;</li><li>Applet tag &lt;APPLET&gt;&lt;/APPLET&gt;</li><li>Frameset tag &lt;FRAMESET&gt;&lt;/FRAMESET&gt;</li><li>Frame tag &lt;FRAME&gt;</li><li>IFrame tag &lt;IFRAME&gt;&lt;/IFRAME&gt;</li><li>Comments &lt;!-- comments --&gt;</li></ul>
<div class="info">
<div class="infoHeader">Note:</div>
<div class="infoContent">
It is adivsable to create email templates in a plain-text editor. If you use an HTML editor (like Dreamweaver® or FrontPage®), be sure it doesn't add unwanted tags.</div></div>
<p>Also, some general advice for HTML-mail</p>
<h3>Use tables for layout.</h3>
<p>Because of the very limited support of style sheets in webmail clients, the best and safest way to layout your HTML email is to use tables.</p>
<h3>Use absolute urls for all your images and links.</h3>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">&lt;img src="http://www.example.com/images/head.gif" width="20" height="60"&gt;<br>&lt;a href="http://www.example.com/products/shoes/tiger.html"&gt;Tiger&lt;/a&gt;</div></div>
<h3>Use simple style sheets, that means don't use absolute or relative positioning.</h3>
<p>Most webmail&nbsp; does not support such positioning. Don’t use external or embedded style sheets, because email programs remove or ignore everything between the &lt;HEAD&gt;&lt;/HEAD&gt; tags. That means the &lt;LINK&gt; tag won’t work if you want to define external style sheets.</p>
<h3>Use inline stylesheets for fonts, font colors, links, background colors, etc.</h3>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">&lt;table width="400" cellspacing="0" cellpadding="0"&gt;<br>&lt;tr&gt;<br>&lt;td style=”font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; line-height: 150%; color: red”&gt;<br>&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&lt;/p&gt;<br>&lt;/td&gt;<br>&lt;td style=”font-family: Verdana, Helvetica, sans-serif; font-size: 10px; text-transform: uppercase; color: black”&gt;<br>Vivamus ut sem. Fusce aliquam nunc vitae purus.&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;</div></div>
<h3>Create your design with a white background color.</h3>
<p>Most webmail and email clients use a white background color to display messages. Often webmail clients ignore or remove the &lt;BODY&gt; tag, which is why background colors usually don’t work. When you do use a different background color than white, you could mess up your design. This could happen, for example, if you create your design for a red background. Your images may have a red background. When viewed in a webmail client, you will most likely see a white background and images with a red background that don’t seamlessly integrate with the background color. The best thing to do is create your design with a white background color. If you must use a different background color than white, you can use a table with a 100% width and perhaps 100% height to simulate the background color:</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">&lt;table width="100%" height="100%"&gt;<br>&lt;tr&gt;<br>&lt;td bgcolor=”#FF0000″&gt;<br>&lt;table width=”400″ align=”center”&gt;<br>&lt;tr&gt;<br>&lt;td&gt;Lorem ipsum dolor sit amet consectetuer&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;</div></div>
<p>You have to specify the font, font color, and font size for all the text and links in every table cell.</p>
<p>If you don’t specify a style, then most webmail clients will use their own style sheets. This could result in displaying different fonts, font colors, and sizes than you want and could also mess up your design.<br>Hotmail and Yahoo display Arial as the default font if you don’t specify a font. Gmail uses Verdana. Hotmail uses a 11px as the default font size, Yahoo uses 12px, and Gmail uses 16px.</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">&lt;table width="400" cellspacing="0" cellpadding="0"&gt;<br>&lt;tr&gt;<br>&lt;td style=”font-family: Verdana, sans-serif; font-size: 11px; color: black”&gt;<br>&lt;p&gt;&lt;a href=”http://www.example.com/link/” style=”font-family: Verdana, font-size: 11px; color: blue”&gt;Lorem&lt;/a&gt; ipsum dolor sit amet, consectetuer adipiscing elit.&lt;/p&gt;&lt;/td&gt;<br>&lt;td style=”font-family: Verdana, sans-serif; font-size: 10px; color: black”&gt;Vivamus ut sem. Fusce aliquam nunc vitae purus.&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;</div></div>
<h3>The &lt;P&gt; tag in Internet Explorer uses more space (margin-top and margin-bottom) than in Gecko-based browsers. This could lead to layout problems.</h3>
<p>For example, if you’re using a table with a fixed width and height and your design is based upon these dimensions. If you have content in the table within &lt;P&gt; tags, then the height of your table could increase in Internet Explorer. This increase would lead to gaps in your design. To prevent layout problems use the &lt;BR&gt; tag instead of the &lt;P&gt; tag as it renders the same in all browsers. If you still have troubles with the layout, you can also use spacers instead of the &lt;P&gt; and the &lt;BR&gt; tag. Another problem with &lt;P&gt; tags is in Windows Live Hotmail. &lt;P&gt; tags are removed. So the safest way is to use the &lt;BR&gt; tag.<br></p>]]></description>
                                    <pubDate>Mon, 15 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00152</guid>
                    </item>
                <item>
                        <title>Expiration Date for the Form</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00164</link>
                                    <description><![CDATA[<p>You may set an expiration date for any form by using expire_date validation.</p>
<p>You should use these settings in the config.php file for certain forms or globally.</p>
<p>Syntax:</p>
<div class="preformatted"><div class="preformattedContent">
expire_date = &lt;date&gt;
</div></div>
<p>Where &lt;date&gt; is any US English date.</p>
<p>Example:</p>
<div class="preformatted"><div class="preformattedContent">
expire_date = 23 September 2007
</div></div>
<p>This will keep all users from submitting your form after 23 September 2007.</p>]]></description>
                                    <pubDate>Sun, 14 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00164</guid>
                    </item>
                <item>
                        <title>Time Zone</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00163</link>
                                    <description><![CDATA[<p>The Time Zone feature helps you set up a time zone for your forms. If your server time zone differs from the your time zone, you can set the difference between your time zone and the server's time zone and receive forms with the correct <a target="" href="ARTICLE_URL#139##AA-00178##Timestamp">timestamps</a>.</p>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">time_zone = -5</div></div>
<p>The time zone is specified relative to server time. The time zone is set for each form separately.</p>]]></description>
                                    <pubDate>Sun, 14 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00163</guid>
                    </item>
                <item>
                        <title>Password Generation</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00161</link>
                                    <description><![CDATA[<p>This feature might be helpful, if you want to generate a password for a user who submits the form. You can send generated password to the email address, save it to a database, or use like any other field.</p>
<p>Syntax:</p>
<div class="preformatted">
<div class="preformattedContent">gen_pass = field_name(num), dict_file.php</div></div>
<p>Example:</p>
<div class="preformatted">
<div class="preformattedContent">gen_pass = password(3) - will generate password with a length of three symbols<br>gen_pass = password - will generate a password with the default length (six symbols)<br>gen_pass = password, ../forms/sample/dict.php - will randomly select one of the passwords from the dictionary located at ../forms/sample/dict.php and write it to the "password" field.</div></div>
<div class="source">
<div class="sourceHeader" align="center">Example of dict.php:</div>
<div class="sourceContent">
&lt;?php header('Location: index.html'); ?&gt; #DO NOT REMOVE THIS LINE!<br>password0<br>password1<br>password2</div></div>
<p>&lt;?php header('Location: index.html'); ?&gt; - this line will protect your password dictionary from unauthorized access. You should put the name of the actual file instead of "index.html" or create an empty "index.html" file.&nbsp;</p>]]></description>
                                    <pubDate>Sun, 14 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00161</guid>
                    </item>
                <item>
                        <title>File Output</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00158</link>
                                    <description><![CDATA[<p>Besides creating page output, you may output any file stored on your server. Use action ‘file' instead of ‘page'. This is very useful&nbsp; if you want to gather any information prior to allowing the downloading of a certain file.</p>
<p>Example of config.php:</p>
<div class="preformatted"><div class="preformattedContent">page = ../index.html<br>
page = ../preview.html<br>
file = /usr/home/secured/area/secretfile.zip</div></div>
<p>In the example above, Form Processor Pro will output the file secretfile.zip after the preview page.</p>]]></description>
                                    <pubDate>Sat, 13 Jun 2009 11:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00158</guid>
                    </item>
                <item>
                        <title>Actions Overview</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00150</link>
                                    <description><![CDATA[<p>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.</p>
<h3>Basic actions:</h3>
<p>The most basic action is “page”. It is used to set the sequence and names of the pages.</p>
<p>Example:</p>
<div class="preformatted"><div class="preformattedContent">

page = ../index.html<br>page = ../preview.html<br>page = ../thank-you.html
</div></div>
<p>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</p>
<p>However, the action's argument can be a template tag and depends on the submitted data. Like</p>
<div class="preformatted"><div class="preformattedContent">
page = ../{#page_from_form#}
</div></div>
<p>In this case user will see the page, whose name was submitted in “page_from_form” field.</p>
<p>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.<br></p><h3>Referencing form pages via full URLs</h3><p>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.</p><p>Syntax:</p><p><div class="preformatted">
<div class="preformattedContent">
page = url_to_a_form_page</div>
</div>
<p>Example:</p><p><div class="preformatted">
<div class="preformattedContent">
page = http://www.yourwebsite.com/url/to/your/form.html</div>
</div>
<p>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:</p><p><div class="preformatted">
<div class="preformattedContent">
use_curl = true</div>
</div>
<p><br></p><br></p><br></p><br></p>]]></description>
                                    <pubDate>Fri, 12 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00150</guid>
                    </item>
                <item>
                        <title>Auto generated Email</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00153</link>
                                    <description><![CDATA[<p>Provides you with the possibility to send auto generated emails without creating any email templates. It takes only one argument - an email address.</p>
<p>Example:</p>
<div class="preformatted"><div class="preformattedContent">
autogen_email = user@domain.com
</div></div>
<p>Adding the line above to the form configuration will give you the opportunity to receive auto-generated emails that contain all submitted data from the form to your user@domain.com email box.<br></p>]]></description>
                                    <pubDate>Thu, 11 Jun 2009 14:00:00 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00153</guid>
                    </item>
                
    </channel>
</rss>