A
Anonymous
Guest
I have a simple file, Im trying to learn the basics. I have uploaded these files to a webhost already that has php support
I have an html file that calls a php file that is supposed to do the mail
<form id="feedback" action="feedback.php" onsubmit="alert('Thank you for your feedback')" method="post">
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname"><br><br>
What can we do better to serve you?<br>
<textarea name="feedback" rows="10" col="20"></textarea><br><br>
<input type="submit" value="Submit" onclick="feedbackThanks()">
</form>
and the feedback.php is
<?php
$msg = "Name: ".$_POST["firstname"]." ".$_POST["lastname"]."<br>"."Feedback: ".$_POST["feedback"];
$msg = wordwrap($msg,70);
mail("me@gmail.com","Comment from website",$msg);
?>
For some reason i cant get it to work and email me. Help!!!!
I have an html file that calls a php file that is supposed to do the mail
<form id="feedback" action="feedback.php" onsubmit="alert('Thank you for your feedback')" method="post">
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname"><br><br>
What can we do better to serve you?<br>
<textarea name="feedback" rows="10" col="20"></textarea><br><br>
<input type="submit" value="Submit" onclick="feedbackThanks()">
</form>
and the feedback.php is
<?php
$msg = "Name: ".$_POST["firstname"]." ".$_POST["lastname"]."<br>"."Feedback: ".$_POST["feedback"];
$msg = wordwrap($msg,70);
mail("me@gmail.com","Comment from website",$msg);
?>
For some reason i cant get it to work and email me. Help!!!!