jasonman1 Posted August 5, 2007 Share Posted August 5, 2007 sorry I wish I would reply on the other posts but it wont let me. header("Location: http://whatever.com/whatever"); For email, you have to have basically a form, and then put the variables into your email(). Here's the basic version, without the actual form: Code: mail($to, $subject, $body);or as an example Code: mail ('herestosomeone@someplace.com', 'Email subject', $body, 'From: person@whosent.com'); It can only take four options at most, and the fourth parameter ('From') is optional. The thing is, I don't really know where to place these codes in my script around the submit botton I have and the box they type stuff in. Quote Link to comment https://forums.phpfreaks.com/topic/63416-htmlphp-last-prob/ Share on other sites More sharing options...
Hybride Posted August 7, 2007 Share Posted August 7, 2007 It doesn't matter if it's at the top of the page or after the submit button, really. All that changes is where the code will display the information of whether or not it was un/successful. Just make sure to have the <? ?> (php) tags and you're set. Quote Link to comment https://forums.phpfreaks.com/topic/63416-htmlphp-last-prob/#findComment-317246 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.