Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103218

Re: Processing multiple forms in a cgi script

Newsgroups comp.lang.python
Date 2016-02-19 10:38 -0800
References <16807edd-4376-4a36-82a7-3bcff8e86a0a@googlegroups.com> <slrnncen3n.16b.jon+usenet@wintry.unequivocal.co.uk>
Message-ID <54ef2615-15a9-406e-8257-d63faac177fb@googlegroups.com> (permalink)
Subject Re: Processing multiple forms in a cgi script
From Jeremy Leonard <jrmy.lnrd@gmail.com>

Show all headers | View raw


On Friday, February 19, 2016 at 1:18:41 PM UTC-5, Jon Ribbens wrote:
> On 2016-02-19, Jeremy Leonard wrote:
> > I have a quick question regarding processing multiple forms. Most of
> > my experience has been where there is just one form so the logic was
> > pretty straight forward for me. My question revolves around how to
> > handle multiple forms. I've seen that you can have an id for each
> > form, but I'm unsure how to process that. Any info or a point/kick
> > in the right direction would be appreciated.
> 
> Only one form can be submitted at once. To identify in your code
> which one it was, either make the "action" attribute for each form
> point to different URLs, or put a unique "name" attribute on each
> submit button, or put an <input type="hidden"> in each form with
> a unique name/value.

Thank you. That helps. The hidden input will be perfect.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Processing multiple forms in a cgi script Jeremy Leonard <jrmy.lnrd@gmail.com> - 2016-02-19 10:13 -0800
  Re: Processing multiple forms in a cgi script Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2016-02-19 18:15 +0000
    Re: Processing multiple forms in a cgi script Grant Edwards <invalid@invalid.invalid> - 2016-02-19 18:29 +0000
    Re: Processing multiple forms in a cgi script Jeremy Leonard <jrmy.lnrd@gmail.com> - 2016-02-19 10:38 -0800

csiph-web