What is one thing almost everyone wants to do with their website?
Have a contact form.
And, it isn’t as difficult as you’d think.
We’re going to use the PHP mail() command to make one.
Make an HTML form with Name, Email and Message fields.
Take the code below and place it in a PHP file to use as your action.
<?php
mail("[email protected]", "Form Feedback", " // your address and subject
Name: $name
Email: $email
Message: $message
", "From: $email");
// Display results
echo("
<html>
Name: $name
Email: $email
Message: $message
</html>
");
?>
0 Comments
Leave a Reply. |
David Rentson
If this free PHP and MYSQL Tutorial is helpful for you... Great! Archives
October 2008
Categories
All
|