Jump to content


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


Multiple actions on submit?

Recommended Posts

What\'s the best way to do this? I want to do more than one thing when the user submits a form. I want their data input into the database and I also want a response email mailed to them using a mailform script.


Now, I could have the first Submit enter the code and have the user hit ANOTHER button to send the email, but that seems very user-hostile.


Is there another way to do something like this?

Share this post

Link to post
Share on other sites

the way I would do it is I would make 2 functions and call them once the user submits a form


button ==> submit ==> result.php*


*containing 2 functions:

1 - data input

2 - response email


note: I\'ve had to open connect to mysql once for each action


anyone got any other solultions? :)

Share this post

Link to post
Share on other sites


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.