[Zope-DB] Re: Having trouble passing arguments through a submit button

Wolfram Kraus kraus at hagen-partner.de
Fri Apr 30 02:27:17 EDT 2004


Laura McCord wrote:
> Hi,
> I am not sure if this is possible but  if I have a form like the form
> at the bottom of the page that displays user information I want to
> pass the user id to a edit form that will update the user
> information. So if I hit the Edit button I want it to take me to an
> edit form while passing the userid variable. How would I write this
> action? This is what I have in on my submit button for the "edit"
> button:
Just add a hidden field to the form:

> <tr><td>
> <form action="user_EditForm">
   <input type="hidden" name="userid" tal:attributes="value userid">
> <input type=SUBMIT name="edit" value="Edit">
> </form>
> </td>
> Normally to create the link to the edit form I have this: <a
> tal:attributes="href python: 'user_EditForm?userid=' +
> str(userid)">[edit]</a>  However, I don't know how to incorporate
> this with a submit button.
> Thanks in Advance, Laura

More information about the Zope-DB mailing list