Catch-All PHP Form Processor

Current Version: 2.0.1

2 comments   154 downloads

Added on November 2nd by Erik Reagan

Catch-All PHP Form Processor

Through my work in web development I’ve noticed the high number of times I need to write out a contact or registration form for a client. Each time I get the form fields together and then decide how I want to process the form. This usually entails a client-side validation of certain fields (required fields, email validation, etc) and then a back-end check of those fields before processing them. This process can get pretty repetitive if you do a high volume of projects or sites needing this function. I was looking for a way to process any form I create with the same script each time and thus produced this PHP script. It’s a lightweight, single file form processor (with an additional file for configuration) that has a number of options. The goal of this script is to provide a small footprint resource available to use over and over. For certain forms you may want to implement your own client-side validation of fields before sending them to the form processor. Let’s explore the features:

Features

  • A PHP file inspects form data and runs simple validation on empty fields and email addresses
  • You have the option of sending the user to a Review page
  • Upon review the user can print and/or submit the results once all fields are
  • Can submit results to 1 or more email accounts
  • Can send a blind carbon copy (bcc) as well
  • Email results can be plain text or HTML formatted
  • Script can be used in a standalone environment OR as a part of your existing site template
  • You can define which fields are required
  • You can define which fields (if any) should not be displayed back to the user when they check the results before submission (eg: IP address)

Form Field Compatibility

This script successfully processes the following field types:

  • text
  • radio
  • checkbox
  • select & options(single and multiple)
  • hidden
  • textarea
  • image

Requirements

  • This script requires PHP 4.0.7 or newer

Be sure to read the docs to understand how to successfully setup multiple checkboxes within a single “name” and multiple select options within a single “name”.

 

Comments

I want to test your Catch-All PHP Form Processor script please.

Abraham Mbongoo Evina on Nov 10th at 11:53 am

Abraham

When updating my site I didn’t account for my download and source code links. You can now find the zip and GitHub repository on the sidebar of the project page. Let me know if you have any questions!

Erik Reagan on Nov 10th at 12:41 pm

Your Words of Wisdom

Remember me       Notify me of follow-up comments