Step 1: The Markup
Create a new file, call it contact.html or similar. Now let’s actually create the form fields. Copy and paste the following code into the newly created .html file.
As you may notice the forms “action” is “contactengine.php” this file, which we will create in the next step is the functioning of the whole contact form. Now save and close this file.
Step 2: The workings of the Contact form
Now create a file called contactengine.php This is the workings of the contact form, all the magic happens in here. Copy and paste the following code into this file.
This code basically grabs all of the detials input into the contact form and sets them out into an email which you will receive to the email specified.
You can edit the parts I have commented to your own details / messages. Now save this file in the same directory as the contact.html file and upload to your server…
0 comments:
Post a Comment