By Stephon Unomon
Google +
KoolPHPSuite.Com
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("myaccount@myisp.com", "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>
");
?>
Stay Tuned For The Section 2 Overview & Quiz.....
And Of Course More PHP Lessons
No comments:
Post a Comment