cobbweb
February 18th, 2006, 08:01 PM
the following code is saved as an HTML file called feedback.html
<html>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
Then I have this PHP file called sendmail.php that has this code.
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "thenetduck@gmail.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://bilbob60.freecoolsite.com/thankyou.html" );
?>
You can view the page at http://bilbob60.freecoolsite.com/feedback.html
The Problem that im having is, when i fill out the information, i never recieve an email. Do i need some type of server or somthing? As you probably assumed, im learning PHP. Any ideas on why I dont recieve an email with the information filled out? Maby if you do a test and try using that form to email me it will work. Anyhelp is much needed
Thanks,
Cobbweb
<html>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
Then I have this PHP file called sendmail.php that has this code.
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "thenetduck@gmail.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://bilbob60.freecoolsite.com/thankyou.html" );
?>
You can view the page at http://bilbob60.freecoolsite.com/feedback.html
The Problem that im having is, when i fill out the information, i never recieve an email. Do i need some type of server or somthing? As you probably assumed, im learning PHP. Any ideas on why I dont recieve an email with the information filled out? Maby if you do a test and try using that form to email me it will work. Anyhelp is much needed
Thanks,
Cobbweb