<?php
$sender = "TMD-Music.com";
$name = $_POST['name'];
$day = $_POST['dd'];
$month = $_POST['mm'];
$year = $_POST['yy'];
$today = date("l, F j, Y, g:i a") ;
$body ="This message was auto generated by TMD-Music.com on: $today \n
Name: $name \n
Date Of Event: $date / $month / $year";
?>
Sending Request...
<?php
mail("natekrygier@gmail.com","TMD Music Inquiry",$body,$sender);
?>
[web] PHP Mailer
I do not know why this does not work. It sends the message, and the $today works, and sends, but all the other variables are blank.
It's impossible to know without seeing the HTML form. My best guess is that your form is using GET instead of POST.
In this way it should works...
[Edited by - -Gray Fox- on December 20, 2007 11:18:43 AM]
$body ="This message was auto generated by TMD-Music\.com on:".$today."\n Name:".$name."\n Date Of Event: ".$date."/".$month."/".$year;
[Edited by - -Gray Fox- on December 20, 2007 11:18:43 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement