Simple Form - Version 1.6
released September 20, 2007
My PHP Forms are one of the most-requested things I have on my site. It took me a while to develop the forms to what they are today - and I still look for ways to improve upon them.

This page is one step in a "new and improved" version. Although my forms do work quite well (haven't had a complaint on the functionality yet!), apparently I really suck at giving instructions on what to do to help customize them. This little form here is my attempt at streamlining the process - this way I do all the work for you. All you have to do is cut and paste.

So, here's the deal. This page will generate the code you need to create my Simple PHP Form. The "Simple" version contains only the name, email address and comments fields. You will have a few options to choose how you want to implement this, from making certain fields (or all - or none!) required, putting in a custom subject for your email - stuff like that. The input you select and place in these fields will only generate the files you need, in the proper format, for your needed form. Nothing you place in here is saved or collected for any purposes whatsoever. That means that, when you input anything, it goes to the next page in the spots it's supposed to go to. When you close the browser, it all goes away. Nothing is retained by me for any purposes whatsoever.

That being said, be sure to fill out these form fields with exactly what you want. Be sure you have a valid email address (otherwise, you're going to have to change the code yourself to make it right). If you want to be absolutely sure these forms work (in their basic format) in 5 minutes or less, then be absolutely sure that everything you enter or select in these fields is exactly what you want.

After filling out the form, you will be taken to another page with three separate sections. You need to copy and paste each section into Notepad, and save as three separate files. All three files must be uploaded to your server, and live in the same directory to work properly.

If you do not like the way the forms look in your browser window (and I'm pretty sure you won't), you can easily edit the two .html files to look however you want. I kept the format of the .html files as basic as I possibly could, to allow room for you to edit the look as you see fit. Be very sure that you do not touch the generated PHP code when you alter the .html documents for formatting. But anything that's not between PHP tags is up for grabs, and you can do whatever you like with it.

So, to recap - fill out these fields with exactly what you want; copy each section on the next page into a Notepad document (for a total of three files), and save as the filename indicated at the top each section; upload all three files to your server (all three must be in the same directory).

Now, 1... 2... 3... GO!

Name:
Email:
Comments/Message:
What would you like the subject of your email to be when it comes to you (so you recognize it's from the form on your website)? Maximum length: 60 characters.
What display name would you like these emails to be sent to (your "display name" that's shown when sending and receiving emails)?
What email address would you like these emails to be sent to?
Currently, the default filename for the script is "index.php". If you place this file in a directory that already has an index file, you may overwrite your current index.

There are two ways around this: first, you can place the files in their own directory. This will cause the URL to your contact from to be "www.yourdomainname.com/contact". Many people prefer this, but some would rather have it appear in the address bar as "www.yourdomainname.com/contact.php" - being seen as a filename rather than a directory.

If you would prefer the former option, then you'll need to create the directory "contact" on your server, and upload all files to that directory. If you would prefer to have the filename appear (thus placing the files in your root), to prevent overwriting the current index page, place the desired filename in this box. DO NOT INCLUDE THE EXTENSION. Also, LETTERS, HYPHENS AND UNDERSCORES ONLY. No numbers, spaces, apostrophes - nothing like that will work. For example: input "contact_page" rather than "contact page.php"

If you plan to have the contact pages in their own directory, then just leave this field blank.


Okay - hit the button below to generate your form files!