If you have been struggling to set up forms on your web site using cgi, then definitely read this article. Installing a simple PHP form is much easier and faster than installing a cgi form and doesn't need any programming experience.
Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Create a Simple, Effective PHP Form for Your Web Site

If you have been struggling to set up forms on your web site using cgi, then definitely read this article. Installing a simple PHP form is much easier and faster than installing a cgi form and doesn't need any programming experience.

How does a PHP form work?

PHP is short for "PHP: Hypertext Preprocessor". It is a server-side, cross-platform, HTML embedded scripting language.

A server side scripting language allows you to create dynamic web pages. Web pages that have been enabled with PHP are treated just the same as any other HTML page, and PHP even lets you create and edit them the same way you would create and edit your HTML pages.

This PHP form consists of 3 web pages, an html page, a PHP page (PHP script) and a thank you page. You collect the visitors information when he fills out the form on the html page. It is then processed by the PHP script which resides on the server. The visitor automatically receives a "thank you for subscribing" message. The form results are returned from the server to your email box.

Server requirements for your PHP form

Check with your web host you have PHP4 installed on your server Most Unix servers do - if so you are in luck and ready to go.

How to create the simple PHP form

You will create a very simple, effective form in which you will collect the name, email address and comments of your visitors. The form results will be sent to your email address.

1. Create the PHP script - copy and paste this code (Jack's FormMail.php script: www.dtheatre.com/scripts/formmail into notepad (not MS Word) and save it as formmail.php

2. Edit the fields - the only recommended field to edit is the "referers" field. This field defines the domains that allow forms to reside on and use your FormMail.php script. If you try to put the form on another server, that is not the specified domain or ip, you will receive an error message when someone tries to fill out your form.

ie: $referers = ('ihost-websites.com','209.123.240.161');

3. Upload the formmail.php script to the web directory which you are planning to use.

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

WordPress Security

90% of business websites have been hacked in the last 12 months. This ebook gives you a complete checklist of things you can do to secure your website without hiring a pricey web developer.

Reader John M Stokes says, "This book is a great resource for security on Wordpress and also does it very quick without having to be a long and boring. Truly worth getting to make sure your Wordpress site is as safe as possible. Click here for more information.

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268