bobismighty Posted August 17, 2010 Share Posted August 17, 2010 Hey guys, I'll be the first to say that I'm a real php n00b, and only understand the basics. I have a website already in place that someone else coded and I just need to add something to. There's a form that posts to another page and then back to a sql database. What I want to do is have the form also email me the contents of the form when it is submitted. Is there a way to have a form do multiple actions? I'm not sure the best way to go about this, so if someone has some pointers, I'd really appreciate it. Thanks! Quote Link to comment Share on other sites More sharing options...
schilly Posted August 17, 2010 Share Posted August 17, 2010 You can't make it POST to multiple locations but you can add a command to send an email into the PHP script that does the DB insert. See http://php.net/manual/en/function.mail.php for info on sending an email with PHP. If you're having probs, post a snippet of the script the form POSTs to. Quote Link to comment 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.