QUOTE
<?php
if(isset($_POST['submit'])) {
$to = "camdaddy09@gmail.com";
$subject = "Form Tutorial";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
if(isset($_POST['submit'])) {
$to = "camdaddy09@gmail.com";
$subject = "Form Tutorial";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
I have no knowledge of php, although i do know html and a little css, I also program in C. thats just a brief overview of my computer programming skills, so feel free to get technical. btw the code posted above is something i found on a website tutorial.