PHP
FORMS CRASH COURSE
phpForms is a web form builder
ideally suited for both newbies and experienced
users. It allows you to create
php forms without the knowledge
of PHP or experience in web programming.
However, from time to time we receive emails
from you asking about how to create
simple web forms on your site.
So we decided to put here a brief step-by-step
guide explaining the basic ideas of this
form mail script.
Welcome to phpForms crash course!
How to create a simple php mail form?
Let's create a simple contact form
in php.
1. Login to Admin Panel of phpForms (use
our online
demo account).
2. Click Forms menu button.
3. Click Create form button
at the bottom of the screen. You will be
asked to fill Form options
(see below):

Form name – enter
Contact form or any other name, this field
is optional
Form color – choose
any color you wish or leave blank
Submit to – choose
if you want to send form results to email
or to store to a database
Send to email –
enter email address where all form submissions
will be sent
Email template –
choose the available template from a drop-down
menu
Form width, in pixels
– enter the appropriate value, 0
- default
Message displayed after submission
– type in any text you wish, e.g.,
"Thank you! Your message has been
sent", users will see this text after
submitting the form
Redirect to – once
the user submits the form, he's redirected
to the page of your choice. Enter any valid
URL. If you leave this field blank, the
user is redirected to the form.
Button captions –
previous, next, submit
4. Click Save. New form
will appear in the list of forms.
5. Click Edit form fields
icon .
Now you will add new fields to your form.
6. Click Add field icon
.
You will be asked to fill Field
options (see below):

Field name – we're
building a simple contact form, so the
first necessary field is the name of the
person who submits the form. Enter Name
in this field.
Required – this
field can be either required or optional.
Tick this check box to make this field
required. The user will not be able to
continue until he enters his name.
Page – choose page
number.
Field type – choose
Text.
Default value –
leave blank
Check rule – choose
Not empty.
Email template –
leave blank.
7. Click Save.
8. Click Add field button
to add another field for email address.
9. Fill Field options
form as follows and click Save.

Field name – Email
Field type – Text
Check rule – Email
10. Click Add field button
to add a new field for the message.
11. Fill Field options
form as follows and click Save.

Field name – Message
Field type – Textarea
12. By now you should have three fields:
Name, Email and Message. It's time to preview
the form and get the code for your site!
Click Forms menu button.
13. Click Get code to insert on
your site icon .
14. Choose the way you want to insert code
into your site and follow instructions.
Congratulations! Let us know what other
samples you would like to see on our site.
If you have any questions, please refer
to our online
documentation or contact
our support team.
|