Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
  Closed Topic Start new topic
left right
camdaddy
post Nov 12 2010, 12:52 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 30-October 10
Member No.: 163,350



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.
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Nov 12 2010, 07:34 AM
Post #2


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,706
Joined: 23-January 10
From: on your screen
Member No.: 127,507



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
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 20th May 2013 - 12:48 AM