[Zope] button to submit with several parameters and call pythonscript

Jonathan dev101 at magma.ca
Tue Aug 1 19:57:25 EDT 2006


----- Original Message ----- 
From: "Alan" <alanwilter at gmail.com>
To: <zope at zope.org>
Sent: Tuesday, August 01, 2006 7:53 PM
Subject: [Zope] button to submit with several parameters and call 
pythonscript
>
> 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
>
> and nothing is printed.

This is an html question, not a zope question, but... you are missing the 
"value" attribute:

>   <input type="hidden" name="jname:string" value="do something to get a 
> value here">
>   <input type="hidden" name="juser:string" value="xxx">


Jonathan




More information about the Zope mailing list