Creating the script

Upon having set up all script settings for different desired functionalities, you then create the script.

The Script menu offers the opportunity of creating the script in any of the PHP, ASP or Perl languages.

Information, alert and error messages

Upon creating the script, a verification sequence of all set up parameters is executed, and a window will pop, where one or more messages can appear informing the result of the verification.

There could be 3 different types of messages that are explained as follows:

Information

Any message with this icon is informative. It does not mean that there is an error or problem to create the program. Does not limit the script creation.

Alert

Messages containing this icon inform about any parameter or functionality with limitations. Does not limit the script creation.

Error

Messages with this icon indicate that one or more Forms To Go parameters are not appropriately set up. The script cannot be created if there are one or more error messages.

When there are one or more error messages, the Save Script button is disabled.

If only information or alert messages appear, the Save Script button will appear enabled, but by pressing it, a window displays asking where you want to save the script that the HTML form will process.

Next, if you selected create a web browser in some of the database options, the window will display again to save the script that will be used for visualizing HTML forms sent from the selected database.

Modifying the action of the form

Upon creating the script, you must modify the HTML form, in order for this to be able to find the script that will process it.

Therefore, the attribute "action" from the tag <form> must be modified, so that it includes the script name. This must be an absolute or relative link to the script's URL. You may find more information on this topic in the appendix accompanying this user's guide.

Example: if the script is going to be located in the same directory than the HTML form, you can modify the attribute "action” as follows:

<form action="myscript.php" method="post">

Using the absolute URL is a good practice to avoid errors.

Special considerations in the script location

Most of web hosting services allow placing the scripts in any directory, but for security reasons, some services just allow script execution in a specific directory. If this is the case as to your web hosting supplier, you must consider this.

Perl scripts require special attention. For common-use reasons, it is required that Perl scripts are executed only in a directory named cgi-bin, and that the URL path is absolute towards the script. For example:

<form action="/cgi-bin/myscript.pl" method="post">

or

<form action="http://www.mydomain.com/cgi-bin/myscript.pl" method="post">

and not a relative path:

<form action="../../cgi-bin/myscript.pl" method="post">

Execution permissions

Scripts in Perl language also require special attention when being uploaded to the server and prepared to be appropriately executed.

You must be sure that the Perl script has execution permission; otherwise, upon sending the values of the form, the web server will generate an error.