----- Original Message ----- From: "Alan" <[EMAIL PROTECTED]>
To: <zope@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


_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to