[Zope] <form action=SCRIPT(paramaters) ..>

Joel Burton joel@joelburton.com
Mon, 4 Mar 2002 15:32:56 -0500 (EST)


On Mon, 4 Mar 2002, chrisf wrote:

> How do I code the following
>
> <form action=SCRIPT(paramaters) ...>
>
> </form>

<form action="script.py">
 <input type="hidden" name="foo" value="bar">
 <input type="text" name="baz">
</form>

will submit to the script "script.py" with foo=bar and baz=_whatever_
in the REQUEST.form object.

So, in script.py:

foo = context.REQUEST.form['foo']
baz = context.REQUEST.form['baz']

...

-- 

Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
Independent Knowledge Management Consultant