Learning PHP - Contact form help

Hi guys,

I currently have a basic website and I’ve had trouble with my PHP scripting.

The form is a rip-off of this:

I’ve got the form layout set up the way I want and as a beginner, I cannot figure out where to go from here.

  1. Where in my index.html file do I paste my PHP script?
  2. What info is needed in my mail.php file to submit the form info to an email address?


^ the form

All the code is present in that download that you need…

The only think you need to switch out is the email address in the process.php

[php]mail("[email protected]",“New Enquiry”,$emailbody,$headers);[/php]

Just swap it to you email address…

Sponsor our Newsletter | Privacy Policy | Terms of Service