Jump to content

Single form with multiple actions


bobismighty

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.