need a little help with PHP mail
Posted: Wed Sep 10, 2003 2:26 am
Greetings. I am kinda new to the PHP lanquage and I just wrote a script for my site where users may submit a form via email. It seems to work when "Submit" is pressed, but I am not recieving the email! Please help!
the form link is: http://www.midnightracing.org/joinapp.html
the script for the php file is:
the form link is: http://www.midnightracing.org/joinapp.html
the script for the php file is:
Code: Select all
<?php
//create short variable names
$name=$_POSTї'name'];
$location=$_POSTї'location'];
$email=$_POSTї'email'];
$age=$_POSTї'age'];
$sex=$_POSTї'sex'];
$year=$_POSTї'year'];
$make=$_POSTї'make'];
$model=$_POSTї'model'];
$currentmods=$_POSTї'currentmods'];
$futuremods=$_POSTї'futuremods'];
$toaddress = 'webmaster@midnightracing.org';
$subject = 'New Membership Request';
$mailcontent = 'Name: '.$name."\n"
.'Age: '.$age."\n"
.'Email: '.$email."\n"
.'Sex: '.$sex."\n"
."Vehicle Info: \n"
.'Year: '.$year."\n"
.'Make: '.$make."\n"
.'Model: '.$model."\n"
.'Current Mods: '.$currentmods."\n"
.'Future Mods: '.$futuremods."\n";
$fromaddress = 'From: webserver@example.com';
mail ($totaladdress, $mailcontent, $fromaddress);
?>
<html>
<head>
<title>Feedback Submitted</title>
</head>
<body>
<center>
<h1>Feedback Submitted</h1>
<p>Your info has been sent!</p>
</center>
</body>
</html>