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! Link to comment https://forums.phpfreaks.com/topic/210987-single-form-with-multiple-actions/ 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. Link to comment https://forums.phpfreaks.com/topic/210987-single-form-with-multiple-actions/#findComment-1100445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.