Support Forums

Full Version: [Help] Contact form...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone help me out here..

Code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$subject = $_POST['subject'];
$type = $_POST['type'];
$to = "jack@digitalthugz.net";

if(mail($to, $subject, $message, "From:$email"));
{
echo "<script type='text/javascript'>";
echo "alert('Thanks! Please allow 24 hours for a reply.')";
echo "</script>";
}
?>

Thats my code.

Everything seems to work fine apart from the Subject.

Subject html is..
Code:
<select name="subject">
   <option value="Suggestion">Suggestion</option>
   <option value="Query">Query</option>
   <option value="Advertisements / Affiliates">Advertisements / Affiliates</option>
   <option value="Other">Other</option>
   </select><br>
   </fieldset>

I really can't see whats wrong here.. Can anybody help me out I've been stuck for ages.
Lock requested by OP.