I followed this tutorial and it worked pretty well at first, untill I decided to add more input catagories and a drop down menu. I undid what i changed before it stopped working and it still won’t work. The weird part is though that it works in Firefox.
This is my code:
PHP
<?php
if(isset($_POST['submit'])) {
$to = "razergames@gmail.com";
$subject = "New Review";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$game_field = $_POST['game_name'];
$genre_field = $_POST['genre'];
$console_field = $_POST['console'];
$review = $_POST['review'];
$body = "From: $name_field
E-Mail: $email_field
Game: $game_field
Genre: $genre_field
Console: $console_field
review:
$review";
echo "E-mail sent to $to!. please press backspace to return to the review page.";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
HTML
<font face="arial" color="white">
<form method="POST" action="mailer.php">
Name:<br>
<input type="text" name="name" size="20"><br><br>
E-mail adress:<br>
<input type="text" name="email" size="20"><br>
<br>
Game name:<br>
<input type="text" name="game_name" size="20"><br>
<br>
Genre:<br>
<input type="text" name="genre" size="20"><br><br>
Platform:<br>
<input type="text" name="console" size="20"><br><br>
Submit Review here:<br>
<textarea rows="9" name="review" cols="60"></textarea>
<br>
<br>
<center><input type="image" src="images/submit.gif" value="submit" name="submit"></center>
</form></font>
The example of it not working can be found here. thanks for any help you can give me.