Php Email Form Help |
||
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.
Zymic Webmaster Forums Web Design & Development Server Side Scripting PHP |
||
![]() |
Php Email Form Help |
||
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. |
|
|
Nov 12 2010, 07:34 AM
Post
#2
|
|
|
THE SILENT FORUM NINJA ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 3,697 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
|
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 18th May 2013 - 10:41 AM |