in reply to Re^2: submit to muliple actions
in thread submit to muliple actions

Don't you want to take two actions on the same script? Or even more possible actions based on form conditionals.

Replies are listed 'Best First'.
Re^4: submit to muliple actions
by vit (Friar) on Feb 17, 2008 at 20:10 UTC
    By actions I mean action in the form <form name="XXX" method="post" action="script1.cgi".... <input type=submit name=submit value="ZZZZ"> What I want is to pass submit request also to sript2.cgi if it's possible

      I understood your question of wanting to have two different scripts being invoked on the same form request, and that is not how it is supposed to happen. Yet, you can have tricks to accomplish what you want

      What usually happens is that one single script is invoked and then processes and takes one or more tasks/actions. What I was trying to tell you is that could look at a means of doing your two tasks on the same script.

      I don't really know your need for having two scripts, but as an example, the same script could go and read info from a database to send back to the client and at the same time log the request on a file. So these two tasks, despite being different, can be accomplished in one script instead of being processed by two separate ones.

      So the point is, do you really need to have two scripts?

        My task is even more simple. My script generates HTML for the form for another web site. Once the text is incerted in <input type=text... of this form the request is passed to this site action.
        My task is to pass the same string to my server with the same <input type=submit..... button and process this string on my server side.