Python CGI and multiple forms on a web page

Maan Hamze MHAMZE at
Mon Aug 20 04:18:15 CEST 2001

Thanks, this answers my question.  The issue was bugging me and I wanted to
be certain.

"Ignacio Vazquez-Abrams" <ignacio at> wrote in message
news:mailman.998208330.20334.python-list at
> On Sun, 19 Aug 2001, Maan Hamze wrote:
> > I have a web page with many separate forms on it.  Each form is
> > with a Post action that runs the same or a different Python CGI script.
> > am using the module
> > For each script, I am using FieldStorage to access a form's elements.
> > I want to be sure of the following:
> > Does FieldStorage in the CGI script that is being run by submitting Form
> > (remember, the web page has many forms:  A, B, C etc....) apply strictly
> > Form A so that the Dictionary available to me has only the elements of
> > A?
> > I know, the question sounds naive (and it may be), but I want to be
> > Thanks,
> > Maan
> The short answer:
> Only the data in the submitted form is sent to the server. The other forms
> as well not exist.
> The long answer:
> I dug around in the W3C's info about HTML, and although the above is
> it's never spelled out explicitly. Take a look if you want:
> --
> Ignacio Vazquez-Abrams  <ignacio at>

More information about the Python-list mailing list