I need to act two cgi from a single submit

I need to act a cgi on a remote machine (registration of data) and to send me a mail reporting that registration.
Is there a very simple way to achieve that (the other host will want to know and control what I do).
Thank you for the help.
toulonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

furuCommented:
Not sure if I get your correctly, so what I'm explaining is how to get your form submitted to two CGI-appliactions with a single button.

To be frank, I don't see why you don't just make the one CGI do both the registration and the mailsending.

Actually you have several options. If you want to do it client-side you need javascript or similar. I'm no javascript-guru, but the concept is quite simple. You might want to make a hidden form in you HTML-document and use form1.submit() and form2.submit(). Something like (pseudo-code):

<SCRIPT>
function submitDouble() {
 form1.submit();
 form2.submit();
}
</SCRIPT>

<INPUT TYPE="button" OnClick="submitDouble();" VALUE="Submit double form">



If you want to do this server-side you have, as always, quite a lot of options depending on how you want to accomplish the task.

If you are familiar with Perl or CGI-friendly languages you can simply make a script og program that activates the two other CGI-applications for registering and mailsending in turn.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.