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

Is it a good idea to use this kind of words...?
Anyway, like I said I need to process one request in two script.

Replies are listed 'Best First'.
Re^3: submit to muliple actions
by olus (Curate) on Feb 17, 2008 at 19:24 UTC

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

      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?