weezer_rocks182
06-28-2003, 07:36 AM
i have a PHP form mailer that worked for about a month, but no it has unexpectedly stopped working. it gives me no error message, and after filling out the form it takes me to the thank you page, but no mail is sent. heres the HTML for my form:
(and yes, ALL paths are correct.)
<form action="http://kwp.scottshriner.net/php/feedback/feedback.php" method="POST">
<font color=a59f6a><B>Your Name:</b></font></td>
<td>
<input type="text" size="27" name="name" class="form"></td></tr>
<tr><td>
<font color=a59f6a><B>Your E-mail Address:</td>
<td><input type="text" size="27" name="email" class="form">
</td></tr><tr><td>
<font color=a59f6a><B>Subject:
</td><td>
<select name="subject" class="form">
<option>---CHOOSE ONE---</option>
<option value="Question">Question</option>
<option value="Comment">Comment</option>
<option value="Suggestion">Suggestion</option>
<option value="Broken Link">Broken Link Found</option>
<option value="I Want To Be Linked">I Want To Be Linked</option>
<option value="Other">Other</option>
</select></td></tr>
<tr><td>
<font color=a59f6a><B>Your Message:</td><td>
<textarea name="comments" rows="5" cols="29" class="form"></textarea><br>
</td</tr><tr><td><font color=f9fdc3></td><td>
<input type="submit" name="submit" value="Send Me An Email">
<input type="reset" name="clear" value="Clear Everything"></td></tr></table>
</form>
and my PHP coding:
<?php
#recipient's email address
$to = "weezer_rocks182@hotmail.com";
#subject of the message
$re = $subject;
$extras = "----------------------------\n" . "· Host: \t\t[ " . $REMOTE_ADDR . " ] " . gethostbyaddr($REMOTE_ADDR) . "\n· Client: \t\t[ " . $ip . " ] " . gethostbyaddr($ip) . "\n· User Agent: \t" . $HTTP_USER_AGENT;
#message from the contact form
$msg = "\n\nName: $name\n\nE-Mail Address: $email\n\nComments: $comments";
#send the email
mail ($to, $re, $msg, $extras);
?>
<font color=a59f6a face="century gothic"><h1><I><center>Thank you!</i></h1>
<P>
Thanks for sending me feedback!! Your comments/questions are greatly appreciated.
Please test it out on your own and see if it works.
(and yes, ALL paths are correct.)
<form action="http://kwp.scottshriner.net/php/feedback/feedback.php" method="POST">
<font color=a59f6a><B>Your Name:</b></font></td>
<td>
<input type="text" size="27" name="name" class="form"></td></tr>
<tr><td>
<font color=a59f6a><B>Your E-mail Address:</td>
<td><input type="text" size="27" name="email" class="form">
</td></tr><tr><td>
<font color=a59f6a><B>Subject:
</td><td>
<select name="subject" class="form">
<option>---CHOOSE ONE---</option>
<option value="Question">Question</option>
<option value="Comment">Comment</option>
<option value="Suggestion">Suggestion</option>
<option value="Broken Link">Broken Link Found</option>
<option value="I Want To Be Linked">I Want To Be Linked</option>
<option value="Other">Other</option>
</select></td></tr>
<tr><td>
<font color=a59f6a><B>Your Message:</td><td>
<textarea name="comments" rows="5" cols="29" class="form"></textarea><br>
</td</tr><tr><td><font color=f9fdc3></td><td>
<input type="submit" name="submit" value="Send Me An Email">
<input type="reset" name="clear" value="Clear Everything"></td></tr></table>
</form>
and my PHP coding:
<?php
#recipient's email address
$to = "weezer_rocks182@hotmail.com";
#subject of the message
$re = $subject;
$extras = "----------------------------\n" . "· Host: \t\t[ " . $REMOTE_ADDR . " ] " . gethostbyaddr($REMOTE_ADDR) . "\n· Client: \t\t[ " . $ip . " ] " . gethostbyaddr($ip) . "\n· User Agent: \t" . $HTTP_USER_AGENT;
#message from the contact form
$msg = "\n\nName: $name\n\nE-Mail Address: $email\n\nComments: $comments";
#send the email
mail ($to, $re, $msg, $extras);
?>
<font color=a59f6a face="century gothic"><h1><I><center>Thank you!</i></h1>
<P>
Thanks for sending me feedback!! Your comments/questions are greatly appreciated.
Please test it out on your own and see if it works.