View the script (Cut and paste) Demo Requires: Perl 5 and CGI.pm Platform: UNIX, LINUX
Form Mate reads header and footer text files so you can customise the look for each form you create. The location of the header and footer files is included in the form as a hidden tag.
FormMate also includes required fields testing, and custom message associated with each required field.
Simply cut and paste the script and install it in your cgi-bin. (CHMOD 755)
Cutomise the few variables in the script (path to web root etc...)
Create a normal form. Here are the tags associated with FormMate:
<input type="hidden" name="required" value="Put required values and associated messages here">
The above (required) works that way:
Put the name of the variable required, followed by 2 hyphens (--) followed by the message you want displayed if the user does not fill in that variable. Delimit each required variable with 2 starts (**) after each associated message
For example: "Name--You must enter your name**City--You must also enter the city you live in"
The above example will ensure that the fields Name and City will be filled in