[Zope] What button submitted
Peter Bengtsson
peter@grenna.net
Thu, 8 Mar 2001 10:55:42 -0000
You got to be kidding!
<form action=process>
<input name=button1 type=submit value="Button 1">
<input name=button2 type=submit value="Button 2">
</form>
You are saying that when a form like this is processed, you can see both
buttons in the REQUEST!
Sounds like bug, because I know that only one should been seen in <dtml-var
REQUEST>
Z version? OS? Proxypass? Apache?
----- Original Message -----
From: "Axel Missbach" <Axel.Missbach@t-online.de>
To: <zope@zope.org>
Sent: Thursday, March 08, 2001 9:33 AM
Subject: [Zope] What button submitted
> Hi,
>
> having a form with some buttons.(Add, Edit, Del...). Every button shoulg
> call the same form, wich one should handle the diffrent button-methods.
> Please tell me a way how to get to know which button is pressed. Every
> button is in the REQUEST, but i can't see, which one is the caller.
>
> I have looked in the Source of the manageform with the Rename Cut, Copy
> ... buttons. This ones changes the actionmethod, but where is the method
> they calling (e.g. manage_cutObjects)
>
> witg regards Axel
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )