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

Sean Fulmer seanmeister1 at netzero.com
Fri Apr 30 13:13:16 EDT 2004


Laura McCord wrote:
>  
> 
> ________________________________
> 
> From: Laura McCord
> Sent: Thu 4/29/2004 7:01 PM
> To: zope-db at zope.org
> Subject: 
> 
> 
> 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:
>  
> <tr><td>
> <form action="user_EditForm">
> <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.
>  

Add method="GET" to your form tag - that will tell the form to send its 
fields as URL parameters instead of posting them in the HTTP headers.




More information about the Zope-DB mailing list