Click to See Complete Forum and Search --> : One Super Button, 3 different functions!


ZiggyStarDust
06-15-2005, 10:35 AM
Does anyone on the highway super know how to or know of a way to make 1 button perform 3 tasks.
I need for a user of my site to fill out a form and click submit.

The submit button ideally will;
1. Send an email to an address on that form.
2. Run a script that will reference info in my database and perform a function based on that data.
3. Then I need that button to charge $ to a members account.

:cool:

Stephen Philbin
06-15-2005, 09:15 PM
You could (and I would say should) do that with a single server side script. I don't know about having it all happen in a single function (I would say that's placing needless requirements upon yourself) but a single server side script should easily handle it. I certainly wouldn't consider doing it with client side scripting anyway.