[Zope-dev] Re: "Dispatch" argument solving submit button problem

Evan Simpson evan@4-am.com
Mon, 14 Apr 2003 17:16:48 -0500


Johan Carlsson [EasyPublisher] wrote:
> <form method="dispatcher_url">
> <input type="submit" name="do_this:dispatcher" value=" Do This ">
> </form>
> 
> would add REQUEST['dispatcher']='do_this'

Icky Hacky:

<input type="submit" name="dispatcher.do_this:record" value=" Do This ">
<input type="submit" name="dispatcher.do_that:record" value=" Do This ">

...then:

target = dispatcher.keys()[0]

Cheers,

Evan @ 4-am