[Zope] button to submit with several parameters and call python script

David H bluepaul at earthlink.net
Tue Aug 1 20:25:45 EDT 2006


Alan wrote:

> Hi Dears,
>
> I am looking for ideas of how to use a submitting button to pass
> several parameters to a python script.
>
> I have googled but I found different solutions not really appropriate
> to my case I guess.
>
> I was trying something like this:
>
>  <form action="do_status.py" method="POST">
>   <input type="hidden" name="jname:string">
>   <input type="hidden" name="juser:string">
>   <input type="submit" value="Submit">
>  </form>
>
> Then I defined my do_status.py with parameters jname, juser
>
>> print jname, juser
>> return printed
>
>
Try print context.REQUEST.get('jname','???')

> and nothing is printed.

David



More information about the Zope mailing list