All of a sudden my mailform has stopped working. I do receive the emails from the form, but no text within- just blank...
It was all of a sudden, no changes were made my side, so im guessing its server side? any idea's?
Code:<form method="post" action="contact.php"> <table border="0" cellspacing="0" cellpadding="0" class="small_txt"> <tr> <td width="150"><font size="2" class="small_txt"><b>Your Name: </b></font></td> <td><font size="2"> <input type="text" class="small_txt" name="user_name" size="50" /> </font></td> </tr> <tr> <td width="150"><font size="2" class="small_txt"><b>Your Email address: </b></font></td> <td><font size="2"> <input type="text" class="small_txt" name="email_from" size="50" /> </font></td> </tr> <tr> <td width="150"><font size="2" class="small_txt"><b>Your Message: </b></font><br /> <span class="style6">*don't forget to leave us a phone number so we may contact you if necessary.</span></td> <td><font size="2"> <textarea rows="5" cols="49" name="email_message" class="small_txt"></textarea> </font></td> </tr> </table> <p><font size="2"> <input type="submit" value="Submit" class="small_txt" /> </font></p> </form>Code:<?php $email_address = "contact@email.com"; //change to the proper email address /* All these other feilds values $user_name, $email_message, $email_subject, $email_address are retrived from email_form.htm that we have created earlier! */ $message = "Contact form \n\nName: ". $user_name ."\nEmail: ". $email_from ."\n\nMessage: ". $email_message; mail($email_address, "Msg From: " . $user_name ." Comments/Suggestions", $message, "From: ". $email_address); echo "Thanks <B>". $user_name . "</B>. We have recieved your message and will contact you soon."; ?>



Reply With Quote
Bookmarks