Hi Raul, The HTML input type submit supports the "name" attribute so you can just name your buttons differently:
<input type="submit" value="option1" name="one"/> <input type="submit" value="option2" name="two"/> The button that was pressed will have the button text as its value so you can test in this way. variable "one" will have value "option1" if it was pressed variable "two" will have value "option2" if it was pressed (Sorry not sure of the sitemap syntax for this) Hope this helps, Regards, Chris > -----Original Message----- > From: Fiedler, Raul [mailto:[EMAIL PROTECTED]] > Sent: 03 April 2002 13:44 > To: '[EMAIL PROTECTED]' > Subject: multiple submit button on a form > > > Hi > > I have a HTML form with fields. In order to process the fields in 2 > different ways I need 2 submit buttons. > How can one assign different actions to the 2 buttons. > > Ultimately I want to have 2 pipelines. > > Can it be done with: > HTML form > <input type="submit" value="option1"/> > <input type="submit" value="option2"/> > > > sitemap > <map:select> > <map:parameter name="parameter-selector-test" value="value"/> > <map:when test="option1"> > <map:redirect-to uri="/cocoon/optioin1"/> > </map:when> > <map:otherwise> > <map:redirect-to uri="/cocoon/optioin2"/> > </map:otherwise> > </map:select> > > thanks > > > Raul Fiedler > > European Central Bank > > DG Information Systems - Business Development > > * +49 (0) 69 1344 6870 > > * [EMAIL PROTECTED] > > > > Any e-mail message from the European Central Bank (ECB) is sent > in good faith but shall neither be binding nor construed as > constituting a commitment by the ECB except where provided for in > a written agreement. > This e-mail is intended only for the use of the recipient(s) > named above. Any unauthorised disclosure, use or dissemination, > either in whole or in part, is prohibited. > If you have received this e-mail in error, please notify the > sender immediately via e-mail and delete this e-mail from your system. > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>