PHPForms Members Documentation
- Members Part
- Forms
- Get Code to Insert on your Web Page
- 1) link to the form
- 2) HTML code
- 3) php include()
- 4) JavaScript include
- Add / Edit Fields
- General
- Default
- Field check
- Export settings
- Field mail options
- Field's "Advanced" options
- Field's "Advanced" options for File Upload fields:
- Form Submissions
- Sort Submissions
- View / Delete Submissions
- Search Submissions
- Export Form Submissions
- Mail2Admin
- New Members Registration
- Forms
- In this section you can see the list of all available forms.
-
– The Send to column shows whether user submissions
are stored in a database
or sent to
the specified email address
. -
– Click Edit Form Fields (
)
in the Command column to edit the fields of the form. -
– Icons in the Command column allow you to preview the form
and get the code to be inserted into a
web-page
. 
- Get Code to Insert on your Web Page
-
To get the form's code or the link to the form, click on the get code icon –
– in the section "Forms" (see above). - There are 4 ways (see the sreenshot below) to put the form on a web page:
- 1) link to the form
- The link to the form can be placed anywhere on a web page and it calls the form page itself with no other content that may be available on your web site.
- 2) HTML code
-
In the text area you can see an HTML code that can be copy/pasted on your
web page as is. If you need to make any modifications to the form's layout
or style, this can be easily done using any HTML editor. Just copy the code
under the 2nd point to the editor, modify the form's look and upload the
code to your web page.
NOTE: If you make any changes to the form via the admin interface (e.g. add/remove fields), you will need to generate the code again and replace the code on the page. - 3) php include()
-
This code can be placed on a page with a .php extension only. In the beginning
on your file (on top of the <html> tag), you need to put the code, which
is displayed in the "get code" section. It should look similar to this: <?php include('/home/PHPForms/public_html/pfmem_demo/PHPForms.php');?>.
Then put the second portion of the code (e.g. <?php form('63681eef6d');?> )
to the location where the form must be displayed.
NOTE: If you make changes to the form via the admin interface, you will need to generate the code again and put it onto a web page replacing the existing code with the form's ID. - 4) JavaScript include
-
This type of code can be put on any web page with any extension. Put the
code you see under the 4th point to the place where the form
must be displayed.
NOTE:When you do any changes to the form, there's no necessity to re-upload the code on your web page. The script will automatically update your form after the changes via the admin interface. 
- Add / Edit Fields
-
In this section you can see the list of fields for the selected.
To add fields to the form, click on the icon "Edit form fields" (
) in the Command column.
Click the icon (
) or the
button "Add field". - General
- – Field name is the value used to identify a form's field
- – Required mark. Checking the required mark option will only make the asterisk sign appear next to the field name informing user that this field needs to be filled in. In this case the user can potentially ignore the field leaving it blank though the form still can be submitted. In order to make certain field trully required, you'll also have to select the check rule in addition to checking the required mark. Note that the check rule option is only available for definite field types: Text, Password, Chechbox, Radio button, Select, Multiple select, Textarea, File upload (see Field type below)
-
– Page. If your form consists of several pages, you can
select from a drop-down menu which page this field will be on. You can edit Page
Options by clicking on the icon
next to the page name (1:: by default). See the screenshot: 
- – Field type specifies the type of the field, which can be:
- – Text is a common text field
- – Password is meant for password entry (the value you enter in this field will be displayed in a form as an asterix string)
- – Checkbox is used to toggle one or several items in a form. All the values you enter for this field will be displayed in the form.
- – Radio button is the button that must have one selection chosen out of two or more choices.
- – Select field displays all the values you indicate for this field, but allows only one value to be used at a time.
- – Multiple select displays all the values you set for this field and allows multiple values to be used at a time.
- – Textarea is a simple text box where the form users can input strings of characters, numbers or any other symbols.
- – File upload field allows form users to upload files by means of the form.
- – Hidden allows to hide the field from the user's view.
- – HTML is used to create HTML values in the form.
- – Date is used to display dates.
- – Img-code is a CAPTCHA (dynamic) image code.
- – PayPal paymentintegrates PayPal to your form. Only the form administrator can add PayPal checkout information to the field you create. Once the field is added to the form, users will be redirected to the PayPal order page where they can enter their credit card details for a secure processing or log into their PayPal account and check out.
- – 2CheckOut paymentadds processing via 2CheckOut.com. Contact your form administrator to set up the field with the data you require. Once the form is submitted, users will be redirected to the 2CO page where they must enter their credit card information for a secure processing.
- – nformat adds special formatting to the fields with the "Numbers only" check rule. When you select this field type, you will see in the Field Options a section Number Format. In the admin area, you can enter data similar to this (###) ###-##-###. When users fill in this field, the value is formatted similar to this: (746) 345-68-123

- Default
- – Default value is used as a value that will be present in the field by default
- Field check
- Check rule specifies the rule to be used for this field. The possible values for this field are:
- – Not empty means that the field must contain any value
- – Numbers only allows only numbers in the field
- – Letters only allows only letters in the field
- – Email checks if the value in the field has an email format
- – Email and not empty checks the email format and the field input data
- – Chars interval specifies the length of input value for the field
- – Multi email and not empty..Once this check rule is selected, the field becomes required and the values entered in this field are checked for their format (it must be e-mail) . Users can enter e-mail addresses in different formats: separated with dots, commas, semi commas, spaces, etc. If you select an e-mail template for this field, the message will be sent to all the email addresses listed in the field. The field type is perfect for Recommend Us forms.

- Export settings
- Name for export. Specify the field name that will be displayed in the database after the submissions export. This value must be entered only if you are going to export form submissions to an external database (see Export Form Submissions below)
- Field mail options
- – Email templateallows you to select an e-mail template that will be sent to the form users.

- Field's "Advanced" options
- Field info
- – Field name is the name of the field you edit
- – Page title is the title of the page where the form is located
- Layout
- Here you can select the type of layout for the field. Move the arrow-like buttons to change the layout
- HTML
- – Field color specifies the color of the field
- – Caption style specifies the style that will be used to display the field's caption (i.e. you can enter a CSS style here, like below:
- – color: red; font-style: oblique; font-weight: bold; font-family:Tahoma;
- – font: 25px Courier; text-decoration:underline;
- – Control style specifies the style that will be used for input fields, for instance:
- – background-color: #ee0000; font-size: 26px; font-weight: bold; font-family:Tahoma;
- – width: 400px; height: 40px; width: 400px; height: 40px;
- – Max length specifies the ultimate length of the field
- – Size/Rows (depending on the selected field type) specifies the ultimate size or the ultimate number of rows for the field

- Field's "Advanced" options for File Upload fields:
- Field color defines the color for the field
- Caption style is the style for the field name
- Control style is the style for the field input
- File extension.Specify the allowed file extensions. Separate extensions by commas (e.g. jpg,png,txt,doc,etc)
- Max file size defines the maximum allowed file size for the upload. Enter the values in Bytes (e.g. to allow the upload of files sized 1 MB only, you should enter 1000000 in the field).

- Form Submissions
- The section contains all form input data that was submitted to the database.
- Sort Submissions
- The following data sorting capabilities are available:
- To sort submissions by name click Form Name.
- To sort by date and time of submission, click Date/Time
- View / Delete Submissions
-
To edit a certain submission, click on the icon "Edit submission" –
– next to the submission name.
Once the icon is clicked, a pop up window shows up. Here you can modify the form
submission and click "Save" to save the submission. -
To view the submission, click the "View submit" button –

-
To delete a certain submission, click on the deletion icon –

- Search Submissions
- To open the submissions manager, click on the link "Search submits". In this section you can search the selected form submissions by a date range, submissions group and any field's value. Click "Select submissions" to select the searched submissions. From here, you can either delete all the submissions or export them to CSV / SQL / Database (see Export Form Submissions below)

- Export Form Submissions
-
To export form input data to a CSV file, press the button "Export>".
In the right hand section you can select submission groups for the export. Select the form name and check 'CSV export' to export all its submissions to a CSV file.
Check "SQL Export" to export form submissions to a data file with an *.sql extension that contains the script for table creation.
Check "Database Export"* to export data to the database specified in the form options.
*NOTE: If the field names in your form contain special characters or there are several fields with the same field name, it is recommended to use an SQL export feature, which results can be easily copied / pasted to the database query line and run the script for execution.
Click on the "Export data!" button to export the selected form submissions. Press the button 'Delete Export!' to delete form submissions from the database. 
- To navigate through the submissions, click 1, 2, 3, etc. below the submissions list. The page number shows up only if a certain amount of submissions is made.
- Mail2Admin
- Once this menu is clicked, a pop up window shows up. Here you can create any message and send files to the PHPForms administrator. Enter your message and click Send Mail2Admin to send the email to the form admin.

- New Members Registration
- User can register for your forms by themselves. They will have to enter their username, password and email to access the members panel. Though new members are allowed to access their members panel, only the administrator can create forms for them.
How to create simple PHP mail form?
Other information
PHPForms is one of the most popular scripts for building and processing web form. Over 8000 websites already successfully use PHPForms. This advanced application lets you create both simple and complex questionnaires with unlimited number of configurations, required fields, contributing to your web site interactivity. PHPForms is a simple program, which, however, can work wonders: why spend a lot of your business time corresponding with your customers to know their opinion?
