PDA

View Full Version : Multiple .ASP ACTIONs from One SUBMIT Within A Form



NGJ
05-17-2006, 01:49 PM
I have x2 ready-made .asp routines available to me.
One has an ACTION type that sends the contents of the FORM to an email recipient,
the other ACTION type creates a .csv file - based on the FORM contents.

What I'd like to do is combine these so that I can, effectively, call the two ACTIONs with just the one click of the SUBMIT button. I've posted this in the ASP forum (as other ASP users may find the solution useful) - though I suspect the solution will be 'Javascript' based.

Can anyone help please? :eek:

Thanks in advance,

N.

mwinter
05-17-2006, 01:54 PM
You'll need to combine them. How can vary. You might write a third that invokes one then the other. Alternatively, you might combine them to form one process. Either way, the solution is entirely server-side.

Mike

NGJ
05-17-2006, 02:08 PM
Thanks Mike.
I was hoping I could somehow combine a call (client side) with a bit of clever scripting - but I understand what you mean.

Cheers,

N.