network23 Posted November 24, 2003 Share Posted November 24, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/1420-multiple-actions-on-submit/ Share on other sites More sharing options...
SubXO Posted November 25, 2003 Share Posted November 25, 2003 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? Quote Link to comment https://forums.phpfreaks.com/topic/1420-multiple-actions-on-submit/#findComment-4705 Share on other sites More sharing options...
Hokus Posted November 26, 2003 Share Posted November 26, 2003 Just make one script which performs both. Quote Link to comment https://forums.phpfreaks.com/topic/1420-multiple-actions-on-submit/#findComment-4714 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.