Script:
Creating the Script
After setting all the parameters required for your HTML form, it's time to create the script.
In the bottom of the main window, select the scripting language desired and press Create Script...
If there are no missing or invalid parameters, you'll be given the option to save the script in your computer.
After creating the script, you must modify your HTML form, updating the action attribute.
Depending on the selected language, some restrictions might apply.
PHP and ASP scripts
Almost all webhosting providers allows PHP and ASP scripts to be executed in any directory of the webserver. Depending on your website structure, you might want to place the script in the same directory as the HTML form, or in another directory with other scripts.
Depending on the location, the action attribute of the form must be modified: the form must be able to find the script, as an HTML page is able to find an image.
If you'll be placing the script in the same directory as the HTML form, then type the name of the script in the action attribute:
<form action="myscript.php" method="post">
If the script will be located on another directory, type the path to that directory:
<form action="../scripts/register.php" method="post">
A good practice to avoid mistakes is to type the absolute URL to the location of the script:
<form action="http://ww.mydom.com/support/regnow.php" method="post">
or
<form action="/support/regnow.php" method="post">
Perl script
Perl script requires additional care. Almost all webhosting providers require Perl scripts to be located in specific directories, like cgi-bin, or it won't be executed.
If this is the case with your webserver, verify the name of the directory and where it's located. It can be named cgi-bin, cgibin, etc.
After uploading the script to the directory, modify the HTML form and type the correct path to the script in the action attribute, which should look like:
<form action="/cgi-bin/myscript.pl" method="post">
Also, after uploading the script, the execution permission must be set. This can be done from your FTP program, and must be:
rwxrwxr-x or chmod 755
More about Script:
Creating the script
Errors before creating the script
Index
|