05-24-2010, 06:16 AM
Can someone help me out here..
Thats my code.
Everything seems to work fine apart from the Subject.
Subject html is..
I really can't see whats wrong here.. Can anybody help me out I've been stuck for ages.
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.