Help with php contact form on flash template

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
digital.patience
Forum Newbie
Posts: 4
Joined: Tue Sep 30, 2008 10:38 pm

Help with php contact form on flash template

Post by digital.patience »

I need some help, I have customized this website http://www.thelonephotographer.com but the contact form does not work.

Here is the code, someone please tell me what I am doing wrong, :? Thank you!

Code: Select all

<?php
$sendTo = "doximagry@gmail.com";
$subject = "(Website) - Contact Form";
$email = $_POST['email'];
$name = $_POST['name'];
$message = $_POST['message'];
    //send mail
    $headers  = "From: $email\r\n";
    //$headers .= 'MIME-Version: 1.0' . "\r\n";
    //$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $msg = "The following information has been submited via website:\n\nE-mail:".$email."\n\nName:".$name."\n\nMessage:".$message."";
    mail($sendTo, $subject, $msg, $headers);
    echo header ("Location: http://www.thelonephotographer.com");
?>
 
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: Help with php contact form on flash template

Post by Burrito »

what kind of errors are you getting?
digital.patience
Forum Newbie
Posts: 4
Joined: Tue Sep 30, 2008 10:38 pm

Re: Help with php contact form on flash template

Post by digital.patience »

No errors ...it is just that nothing is happening when I try to fill out the form and send it...
Post Reply