Attaching several scripts to a submit button


#1

I was wondering if it is possible to attach several scripts to one submit button on a website.

Details:
I need one script that takes an email addy from a field, sends a reply to that email address, and then sends the submitted email address to a database (mySQL). Can I take three different scripts and attach tham to one button, or do I have to build a huge script to do all of this at once?

Thanks for the help.


#2

I am not sure I understand what you are asking.

Can you run three seperate scripts from one submit sure, just once the page reloads or the new page does, check to see if the button was pressed and if it validates true then you can include the scipts to run.


#3

You could turn the scripts into functions, and call them consequently when the button is clicked.