Hello all! I setup a contact form on one of my websites, and it all worked out just fine but, I am now trying to use that same form on another website, and it is not working.
Here is the code that is displayed on the page itself:
And here is the contact.php code:Code:<form name="contact_form" action="contact.php" method="get"> <div class="row"> Enter your name<br /> <input name="textfield1" type="text" class="input" /> </div> <div class="row"> Enter your e-mail<br /> <input name="textfield2" type="text" class="input" /> </div> <div class="row1"> Enter your message<br /> <textarea name="textfield3" cols="50" rows="10"></textarea> <div class="div"><span style="width:97%;"> <input name="reset2" type="reset" value="" style="width:56px; height:20px; background:url(images/button_clear.gif) no-repeat top right; border:0px none; cursor:hand; cursor:pointer;"/> </span> <span style="width:97%;"> <input name="submit" type="submit" value="" style="width:56px; height:20px; background:url(images/button_send.gif) no-repeat top right; border:0px none; cursor:hand; cursor:pointer;"/> </span><br /> </div> </div> </form>
The form is placed at http://www.freereseller.info but, it should send the emails to admin(AT)afreewebhost(DOT)com.Code:<? $subject="from ".$_GET['textfield1']; $headers= "From: ".$_GET['textfield2']."\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; mail("admin@afreewebhost.com", $subject, " <html> <head> <title>Contact letter</title> </head> <body> <br> ".$_GET['textfield3']." </body> </html>" , $headers); echo ("Your message was successfully sent! <a href="http://www.freereseller.info">Click here</a> to go back to our main page."); ?> <script> resizeTo(300, 300) //window.close() </script>
The form acts like it's submitting, it says that the message was sent successfully but, I never receive the email? Can any of you tell me what might be the problem here? I looked over and over it but, I'm a beginner when it comes to coding so I'm lost!
Any help would be GREATLY appreciated! Thanks in advance!


LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks