Re: HTML Form/Page and Navigation with multiple buttons
- From: "Dave Borne" <dborne@xxxxxxxxx>
- Date: Thu, 31 May 2007 08:53:14 -0500
How can I identify which button has been pressed. Do I need a
separate form for each button and hide all the relevant session fields
in each form or is there a way of identifying which button has been
pressed on the page.
Hi, Richard,
Just give each button (or input) tag a distinct name attribute and a
value attribute. Also make sure the button is inside the form. When
the button is used to submit the form, FieldStorage will return the
name:value pair.
-Dave
.
- References:
- HTML Form/Page and Navigation with multiple buttons
- From: mosscliffe
- HTML Form/Page and Navigation with multiple buttons
- Prev by Date: Re: WEATHER PROGRAMMING IN PYTHON
- Next by Date: How do I Extract Attachment from Newsgroup Message
- Previous by thread: Re: HTML Form/Page and Navigation with multiple buttons
- Next by thread: [OT] Re: HTML Form/Page and Navigation with multiple buttons
- Index(es):