<form action="sendmail.php" method="post"> <table> <tr><td><label>Name:</label></td><td><input type="text" name="txtboxname" /></td></tr> <tr><td><label>Email: </label></td><td><input type="text" name="txtboxemail" /></td></tr> <tr><td><label>Subject: </label></td><td><input type="text" name="txtboxsubject" /></td></tr> </table> <textarea rows="7" cols="22" id="txtmessage"></textarea> <input type="button" id="btnsend" value="Send" /> </form>
Then I used a php script called sendmail.php located elsewhere, here is the code:
<?php $to = "noeljramos@gmail.com"; $subject = "Message email from website " . $_REQUEST['txtboxsubject']; $message = $_REQUEST['txtmessage']; $headers = $_REQUEST['txtboxemail']; if (mail($to, $subject, $message, $headers)) echo "IT WORKS"; else echo "DIDNT WORK"; ?>
This does not send me anything, would anyone care to tell me why?


Sign In
Create Account


Back to top










