Hey guys, can't seem to get my php send mail form to work, althoiugh i've had it working fine in the past which is odd.
For some reason though, it just wont send an email, although it appears to be working fine when you fill it out.
Here is my HTML code:
And here is my php code for sendmail.php:
Thanks for any help, but i really am clueless about php.
For some reason though, it just wont send an email, although it appears to be working fine when you fill it out.
Here is my HTML code:
Code:
<p>Your Name<br/>
<input name="name" type="text" size="60" />
</p>
<form method="post" action="sendmail.php">
<p> </p>
<p>E-mail Address<br />
<input name="email" type="text" id="email" size="60" />
</p>
<p> </p>
<p>Subject:<br />
<input name="subject" type="text" id="subject" size="60" />
</p>
<p> </p>
<p>Message<br />
<textarea name="additional" rows="8" cols="57"></textarea>
</p>
<p>
<input name="submit" type="image" src="Images/submit.png" />
</p>
And here is my php code for sendmail.php:
Code:
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
$additional = $_REQUEST['additional'] ;
if (!isset($_REQUEST['email'])) {
header( "[email protected]" );
}
else {
mail( "[email protected]", "Some feedback!",
"$message\nSubject:\n $subject \nMessage:\n $additional",
"From: $name <$email>" );
header( "[email protected]" );
}
?>
Thanks for any help, but i really am clueless about php.