Contact form for Website!!
I am in the process of building a website using Dreamweaver, I am having problems with the form Working, I have created the HTML element and placed it within a table, I have also created a Php file to process the form and it just won't work. All I want is a basic form with the following fields: First name, last name, email address, Telephone number, comments box and submit button, can anyone help with the coding or point me in the right direction please as I am ready to self combust grrrrrrrrrr!!!
Check out these examples:
1- Free simple PHP based email contact form
2- Creating simple PHP contact form
3- A simple, easy PHP contact form
4- Or Google --> simple php form
There you can find how to make a simple contact form with some adjustments.
(and even download the code)
PS Your webserver needs to support PHP !!
Last edited by coderunner; 07-17-2012 at 07:30 PM.
To add to coderunner's advice, did you realise that you cannot test php in your browser like you can html? You have to run the php on a server. You can set up a local server, I use WAMP. It is free, easy to install, and works faultlessly. Anyway, apologies if you already knew about this.
yeah, also, if you mail the form to say, gmail, using a php script and you are using your own computer as the server, I have apache2, without a verifiable domain, then gmail will not accept your mail, and it will bounce.
This is because it comes from your computer. Even it you have a field 'Sender email', the sender of your email is your php script on your computer. gmail won't like this, as it looks like spam, and you will not recieve any mail. I can easily send mail to myself@mycomputer using a php script, but not to gmail. This is a bit of /var/log/mail
Jul 16 11:55:53 pedro-bedro postfix/error: DA64E6C0FF6: to=<firstname.lastname@example.org>, relay=none, delay=0.28, delays=0.14/0.01/0/0.13, dsn=5.0.0, status=bounced (gmail.com)
But I am only trying things out before I rent a host. Anyone suggest a good host??
In the UK, I'm very happy with Heart as my host. So long as you do not need a MySQL database, it is really inexpensive. PHP is supported by default.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)