Jump to content

DaveyBoy

New Members
  • Posts

    3
  • Joined

  • Last visited

DaveyBoy's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. DaveyBoy

    PhP Code problem

    Thanks folks! I have"repaired" the code and now it works fine. I want to thank all that replyed and also Stefan Mischook for his tutorials on PHP. After viewing the tutorials I was able to see the error(s) and understand more about PHP code. Thanks again! Oh...Here is the repaired code. <?PHP if($_POST['submit']) { $recipient="me@mysite.com"; $subject="Contact from my Web Site"; $body=" $name $email $comments "; $headers='From: '.$email."\r\n".'Reply-to: '.$email."\r\n"; mail($recipient, $subject, $body, $headers); echo " "; } else { echo " "; } ?>
  2. DaveyBoy

    PhP Code problem

    jlhaslip and tpattison- I changed as instructed and I still get a blank page (mywebpage.com/sendmail2.php) when I submit... and no mail. Thanks falkencreative- Thanks for looking.
  3. DaveyBoy

    PhP Code problem

    First let me say that I did not write this php code. I'm real new at trying to write and implement a php file and a "Join our mailing list" form. I can not see what's wrong so I am asking for some help. When I click the submit button on the web page I get nothing. No mail sent, just a blank page. Can someone look at the code(s) for me and maybe correct ? Here is the php code: <?PHP if($_POST['submit']) { $recipient="me@mywebsite.com"; $subject="My Web Site"; $body=" $name $email "; $headers='From: '.$email."\r\n".'Reply-to: '.$email."\r\n"; mail($recipient, $subject, $body, $headers); echo " "; } else { echo " "; } ?> And the form code: >Untitled Document </pre> <table width="63%" border="2" cellpadding="4">Join Our Mailing List NameEmailComments </table> <br Thanks for looking!
×
×
  • Create New...