Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] Contact form...
#1
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.
#2
Lock requested by OP.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP email input form - having trouble getting the form to work... abayindi 4 2,425 03-19-2012, 10:02 AM
Last Post: RainbowDashFTW
  [NEED HELP] PHP Form post, get, echo Đενɨаηсε™ 5 1,833 02-06-2012, 01:16 PM
Last Post: ★Cooldude★
  How to make a form. HB Virus 10 3,149 12-30-2011, 08:03 PM
Last Post: BreShiE
  PHP form creator? Sam 7 2,336 07-13-2011, 04:53 AM
Last Post: Skyset
  [SOLVED] HTML Form + PHP Help! J4P4NM4N 1 994 04-11-2011, 06:04 AM
Last Post: J4P4NM4N

Forum Jump:


Users browsing this thread: 1 Guest(s)