Master Form PHP V3
 
 

[home]

User Manual

General   Control Panel   Form Features
   
 

Form Tips

Index

Here are a few tips that may come in handy with your forms.

Getting the Form URL Into the MySQL Database

The referrer information sent to browsers is not reliable. Browser preferences can be set to block referrer information. Some personal firewall software can also block the information.

JavaScript, though, always knows the URL of the web page it's on.

This JavaScript in your form will insert a form field named "formURL" and give the field the value of the web page with the form.

<script type="text/javascript">
document.write('<input type="hidden" name="formURL" value="'+document.URL+'">');
</script>

Master Form .PHP does not use type of form field as criteria. Therefore, a hidden field with a value will be recorded in the MySQL database table just like a regular text input field.

Completely Hide Form from Spiders

Convert the form source code into JavaScript code so the form is invisible to Spiders.

If the form is multi-page, only the first page can be protected this way. The reason is subsequent pages have information inserted into the forms with PHP on-the-fly.

When the form is complete and tested to work correctly, go to the Willmaster Form Source Code to JavaScript Converter page. The page contains instructions for using the JavaScript.

Form Field Error Checking

JavaScript can be used to check for form errors before the form is allowed to be submitted. It may be more user-friendly to provide the error messages immediately than to wait until the software has processed the form submission.

The Master Form .PHP download package contains a file with JavaScript to check for required text fields and to check that email text fields contain at least the "@" character. Instructions come with it.

[user manual]
[home]

Master Form PHP V3, version 3.0
Copyright 2010, 2011 Bontrager Connection, LLC
Copyright 2011-2013, 2015, 2017, 2020 Will Bontrager Software LLC