email handler
Posted: Fri Jul 11, 2008 5:35 pm
ok ive done this before but i dont know why its not working now, i think maybe im a little to confident that it should work and im missing a small error that i should normally see or maybe im just doing something completly wrong. but please take a look at my code and see if u can help me out, thank in advance.
this is my php form handler
this is the html code for the form that im sending
but im getting this message
Code: Select all
<?php
$Name = $_POST['Name'];
$Contact_email = $_POST['Contact_email'];
$Age = $_POST['Age'];
$Time_played = $_POST['Time_played'];
$Why_join = $_POST['Why_join'];
$Other_games = $_POST['Other_Games'];
$formsent = mail('myemail@verizon.net',
'RGC Website Application',
"Request From:
Name: $Name\r\n
Contact_email: $Contact_email\r\n
Age: $Age\r\n
Time_played: $Time_played\r\n
Why_join: $Why_join\r\n
Other_Games: $Other_Games",
"From: $Contact_email\r\n Bounce-to: myemail@verizon.net");
if ($formsent) {
echo "<P>Hi, $Name, we have received your request, we will respond to you as soon as possible.
Thank You,
Renegade Gameing Community";
} else {
echo "I'm sorry $Name, but there seems to be a problem, please try to resubmitt the form.";
}
?>Code: Select all
<input type="hidden" name="validate" value="1">
<form action="join_us.php" method="post" name="Join_us" onSubmit="return validate(this)">
<p>
<label>Name
<input type="text" name="Name" id="Name" />
</label>
</p>
<p> </p>
<p>
<label>Email
<input type="text" name="Contact_email" id="Contact_email" />
</label>
</p>
<p> </p>
<p>Age
<input type="text" name="Age" id="Age" />
</p>
<p>
<label>What other games do you play?
<textarea name="Other Games" id="Other_Games" cols="45" rows="5"></textarea>
</label>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<label>Why do you want to join RGC?
<textarea name="Why_join" id="Why_join" cols="45" rows="5"></textarea>
</label>
</p>
<p> </p>
<p> </p>
<p> </p>
<p>
<label></label>
</p>
<p>
<label>How many days a week do you play CSS?
<input type="text" name="Time_played" id="Time_played" />
</label>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<label>
<input type="submit" value="Submit Form" /></a>
</label>
</p>
</form>but im getting this message
I'm sorry andieghthg, but there seems to be a problem, please try to resubmitt the form.