Help - Search - Members - Calendar
Full Version: Php Email Form Help
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
camdaddy
Im trying to get a contact me page up and running and i just followed a tutorial i found on a website for a generic "contact me" php script.
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!";
}
?>


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.
ssfdre38
for any mail() function to work you need to purchase mail from zymic just join the livechat at livechat.zymic.com/hosting and type ?purchasemail and you will get info on how to get it active on your hosting account
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.