Developer Support »

Processing your own forms

Either script (FormToEmail or FormToEmail-Pro) will process any form that is submitted to it using the POST or GET methods and will send the output to you in an email. You do not need to make any additional changes to the script to process your own forms but you should remember to add your email address to the script and change the "action" of your form, like these examples (as appropriate):

<form action="FormToEmail.php" method="post">

<form action="formtoemailpro.php" method="post">

The above code assumes that the webpage (containing your form) and the script are in the same directory (folder).

If you have more than one form and you want them processed differently, you can simply make a copy of the script and use one copy for each form, configuring it to suit. Call the copy by a different name and change the form action to the new name. So for example, if you make a copy of the script and call it "formtoemailpro2.php", the form action would look like this:

<form action="formtoemailpro2.php" method="post">

If you simply want forms sent to different recipients, have a look at the "Select form recipient" page on the support section.

The input for the visitor's email address must be named "email" (lower case). See the "No From: address in email" section on the support page for more information.

To make the output more readable, the field names are capitalized and underscores are removed. So if you have a field name "street_address" in your form, the output in the email would look like: Street address:

If you are using the pro version of the script, you can make any field on your form a required field. You can configure this in the script itself. See the "Installing the script" section on the support page for more information.

If you are using a multiple select or multiple checkboxes with the same name, you should name the field as an array. See the "Adding extra fields" page on the support section for more information.

By default, the script will only return values that are not empty (Pro version can be configured to return all fields, empty or not). So if you have a very large form and the visitor only completes one or two fields, then you will only get the data from these fields sent to you. This assumes that there are no required fields empty (pro version).