PHP Contact Us Form

Loading...

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

Uploaded by on Sep 11, 2009

This is our first php tutorial and we make a simple contact us form, the form has three stages of validation, the first stage checks to see if they entered a name, the second checks to see if they entered an email address, the third checks to see if they entered some comments if not it denies them and tells them appropriately, if they have it sends an email to you and tells them their form has been sent.

I used Easy PHP 5 to test it you can use any of

WAMP (Windows)
MAMP (Macintosh)
LAMP (Linux)
XAMPP (Linux and Windows)

If you like.


The link to the code is here -- http://php.pastebin.com/f4ea38197

Please go to http://apple.freebiejeebies.co.uk/101661 and sign up and complete a free offer it really helps us make more videos or view our competition video.

Please visit http://webmasterways.com for great Webmaster Tips and Tricks!

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ThePS3GamingShow)

  • your voice pisses me off

  • @sonnyshaneannesley Your comment has no purpose. :)

  • It is too basic. It is just a PoC. In real life projects a contact form looks much more different. Try to use OOP and MVC.

  • @whatwasthatslapfor this is only a basic tutorial if you already know oop then why are you watching simple tuts like this?

  • Thank you very much!

  • You are also welcome!

see all

All Comments (35)

Sign In or Sign Up now to post a comment!
  • Thank you so much! I am very grateful to your video tutorial. Simple but useful.

    We need you here in you-tube!

  • thanks dear it was really helpful for me

  • @sonnyshaneannesley youre an idiot

  • pee hach pee

  • it's like ur nose haz something.

  • Dude what happen to the file upload part, what if i want ppl upload a file on my contact forms, what do i do? you should put that in the tutorial too

  • very simple and nice video,

    can i please ask what if I want visitor see thankyou.html, if all the information fields are filled properly by the visitor, instead of the echoing the thankyou message.

  • how do i echo the form out?

  • what do i put in the contact.php that it links it to?

  • how would i do it if i wanted to do it without a comments. Can i put this on top of a background image in a site i already have?

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