GetDotted Domains

Viewing Thread:
"PHP - Contact Form"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 20/06/06 at 05:26
Regular
"Devil in disguise"
Posts: 3,151
Here is my variation on the common contact form script. The actual form is built via php and it'll do some basic validation checks for you automatically and display error messages.

The code is heavily commented so its mostly understandable I think. Even so, you dont need to understand most of it. Its set up as a fairly standard form already, you could just change the email address it sends the message to and its good to go.

How to use it:
Find the USER DEFINABLE section in the code (its near the top).
Each variable in there is clearly commented and specifies what its used for. Changed them as you feel the need to. At minimum you need to change the $destination variable as it specifies the email address to send the contact form to.
The only other thing to do of course is to put in your HTML header and footer data.

As I say, its useable, but I wouldnt call it complete theres plenty you can do to improve it:
-Could easily be turned into a class (for those that like OO).
-The HTML generated could be tidied up a little, its a tableless form but still not semantically perfect.
-Spam protection could be added (javascript + server side)
-Support for more formatting on the form so you can add subsections, line breaks, extended descriptions etc.
-SMTP support
-File upload support
-Radio button support

Anyway, script is in the next post.
Needless to say its going to look a total mess without any formatting and the narrow width of the forum doesnt help either. Perhaps my efforts will encourage some nice staff member to do something about the code tags. ;)
But I'll also try to find somewhere to host the script so you can grab it in a nicer format.
Tue 20/06/06 at 05:26
Regular
"Devil in disguise"
Posts: 3,151
Boom!
Tue 20/06/06 at 05:26
Regular
"Devil in disguise"
Posts: 3,151
Here is my variation on the common contact form script. The actual form is built via php and it'll do some basic validation checks for you automatically and display error messages.

The code is heavily commented so its mostly understandable I think. Even so, you dont need to understand most of it. Its set up as a fairly standard form already, you could just change the email address it sends the message to and its good to go.

How to use it:
Find the USER DEFINABLE section in the code (its near the top).
Each variable in there is clearly commented and specifies what its used for. Changed them as you feel the need to. At minimum you need to change the $destination variable as it specifies the email address to send the contact form to.
The only other thing to do of course is to put in your HTML header and footer data.

As I say, its useable, but I wouldnt call it complete theres plenty you can do to improve it:
-Could easily be turned into a class (for those that like OO).
-The HTML generated could be tidied up a little, its a tableless form but still not semantically perfect.
-Spam protection could be added (javascript + server side)
-Support for more formatting on the form so you can add subsections, line breaks, extended descriptions etc.
-SMTP support
-File upload support
-Radio button support

Anyway, script is in the next post.
Needless to say its going to look a total mess without any formatting and the narrow width of the forum doesnt help either. Perhaps my efforts will encourage some nice staff member to do something about the code tags. ;)
But I'll also try to find somewhere to host the script so you can grab it in a nicer format.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Great services and friendly support
I have been a subscriber to your service for more than 9 yrs. I have got at least 12 other people to sign up to Freeola. This is due to the great services offered and the responsive friendly support.
Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.