Results 1 to 5 of 5

Thread: Contact form for Website!!

  1. #1
    Join Date
    Jul 2012

    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!!!

  2. #2
    Join Date
    Jun 2012
    Hello Raybrown,

    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.

  3. #3
    Join Date
    Mar 2012
    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.

  4. #4
    Join Date
    Jul 2012
    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[3943]: DA64E6C0FF6: to=<mygmail@gmail.com>, 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??

  5. #5
    Join Date
    Mar 2012
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles