Examples & Packages

The templates of the example packages are based on the Foundation framework or on Bootstrap. You can decide which one you want to download. It's easy to change the template to whatever framework you like.

Basic Forms

+Disable Submit

The submit button is disabled automatically until all fields are valid. This only works with AJAX validation.

+AJAX Submit

This example shows how to submit a form using AJAX. There is no page reload and even redirects work!

+Basic Contact Form

This example shows a simple contact form. Website users can choose if they want to receive a copy of the request via email.

+Basic Field Demo Contact Form

This example shows a simple contact form. At the bottom there are probably useless radio buttons and checkboxes. These are just to show how it can be done. Website users can choose if they want to receive a copy of the request via email.

Multistep Forms

+Job Application

This example demonstrates how to create a multistep job application form with file upload.

+Advanced Job Application

This example demonstrates how to create a multistep job application form.
The form shows a different second step according to the user input of step 1.

Newsletter Registration

+CampaignMonitor

This example demonstrates how to use Formhandler to add new subscribers to a CampaignMonitor list.

+Constant Contact

This example demonstrates how to use Formhandler to add new subscribers to a Constant Contact list.

SPAM Protection

+Captcha

In this example, the form is protected against SPAM bots using the extension captcha.

Requires:captcha

+jm_recaptcha

In this example, the form is protected against SPAM bots using the extension jm_recaptcha.

Requires:jm_recaptcha

+sr_freecap

In this example, the form is protected against SPAM bots using the extension sr_freecap.

Requires:sr_freecap

+wt_calculating_captcha

In this example, the form is protected against SPAM bots using the extension wt_calculating_captcha.

+mathguard

In this example, the form is protected against SPAM bots using the extension mathguard.

Requires:mathguard

+Time based check

This example demonstrates how to protect your form against SPAM bots without a captcha image. In this case the time the user needs to fill out the form is measured. If the time is below or above a configurable threshold, Formhandler will treat this request as SPAM.

Validation

+Basic Error Messages

This example demonstrates how to display error messages.

+isError Markers

This example demonstrates how to use isError-Markers to mark erroneous fields. This is useful if you don't want to display error messages, but just want to highlight the fields.

+AJAX Validation

This example shows how to validate your form using AJAX.

File Upload

+Basic File Upload

This example demonstrates how to create a simple file upload form. The form contains an upload field enabling the user to upload a single file. Formhandler will attach that file to the email that is sent to the admin.

+Basic File Removal

This example demonstrates how to create a form with file upload enabling the user to remove uploaded files. The form contains an upload field enabling the user to upload up to 3 files. The user can remove uploaded files again before submitting the form.

+AJAX Based File Removal

This example demonstrates how to create a form with file upload enabling the user to remove uploaded files using AJAX. The form contains an upload field enabling the user to upload up to 3 files. The user can remove uploaded files again before submitting the form.

+Store Uploaded Files

This example demonstrates how to create a simple file upload form and move uploaded files to another folder when the form is completed.
This way you can distinguish between files from unfinished and files from finished form submissions.

Data Export

+CSV Export

This example demonstrates how to enable the user to download a CSV file containing the submitted form data.

+TCPDF

This example demonstrates how to enable the user to download a PDF file containing the submitted form data.
After the user submitted the form, an email is sent to an administrator. A PDF file containing the submitted form data is attached to this email.

The PDF files are generated using TCPDF.

+WebkitPDF

This example demonstrates how to enable the user to download a PDF file containing the submitted form data.
After the user submitted the form, an email is sent to an administrator. A PDF file containing the submitted form data is attached to this email.

The PDF files are generated using the extension webkitpdf.

Requires:webkitpdf


to top