Hey, Im learning a bit of PHP as youve probably gathered from my many threads on PHP, and was jsut wondering if someone could help me out with this:
Im making an email contact us form,
Thats the very simple form i made.....HTML Code:<form method="post" action="send.php"> Email: <input name="email" type="text"><br> Message:<br> <textarea name="message" rows="15" cols="40"></textarea><br> <input type="submit"> </form>
My question is, the send.php is going to contact the PHP for what is going to be sent (obviously) And i was wondering why this wont work:
Thanks for any help,PHP Code:<?php
$to = callum@thenrs.net;
$subject = "Contact Us";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$sent = mail($to, $subject, $message;) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>
Callum,
(I feel like such a noob asking sooo many questions)





Reply With Quote


;