Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorial: Create an HTML Contact Form Part 2 -HD-

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,523
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 18, 2011

In this tutorial, you will learn how to create the php part of the contact form that will process the information entered by the user and send an email.

Be sure to SUBSCRIBE because there will be a new tutorial every week.

Follow me on Twitter @RiverCityGraphx

Like us on on facebook: http://on.fb.me/i8UQpt

Suggest tutorials at http://www.rivercitygraphix.com

For project files, help forums, and more check out the website at http://www.rivercitygraphix.com

For business related inquires contact us at rivercitygraphix@yahoo.com

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (RiverCityGraphix)

  • I followed you instructions to the tee...I sent a message from my webpage...it's been 10 mins and I have not received the message....could it be the server being slow? I did not receive any error messages so i am assuming so. please help

  • @Dosonina1 Yes, sometimes it takes a little while for emails to send. Also, don't forget to check your spam folder as they might appear there until your email realizes they are not spam.

  • Error on line 21..

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\objekwisata\ad­min\contact_form.php on line 21

    please help me...

  • @qhiena Chances are everything is working correctly. The only problem is that you are using xampp which has no built in mail processor. When you upload it to a web server everything should work ok assuming you have no other errors.

see all

All Comments (28)

Sign In or Sign Up now to post a comment!
  • how do i upload it to web server please help i am using webs and when ever i upload it say contact_form.php and when i click it the codes come up but not the form please help me man

  • How do i make it send to my website email?

  • @RiverCityGraphix The file has been uploaded to my server. However, when I try to access the page it simply downloads the php file.

  • @Nastevenson if you fine a way could you foreword that over thanks I yet to resolve that download issue...

  • @Nastevenson You must upload the php file to a web server. If you try to run it locally it will just try to download it.

  • I'm having the same issue. All of the browsers download the php page as a file when I try to access the page.  Am I missing something?

  • didn't work

  • Great video! I'm just having a couple of problems though. It's giving me the following error:

    Parse error: syntax error, unexpected T_VARIABLE in /home/content/59/4274259/html/­alpinegrafix/newman-constructi­on/contact.php on line 12

    It's on the line with the following code: $body = <<<EOD

    I followed your instructions to the letter...any suggestions? I'm in a real time crunch on this..you can email me directly at alpinegrafix@gmail.com

    Thanks!

  • Thank you very much, I did all the steps from this tutorial and is a total success! I always receive emails from my website. super cool! please keep making more tutorials.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more