Jump to content

Multiple actions on submit?


network23

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?

Link to comment
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? :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.