[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev bug when submitting multiple textareas with same name?

From: Klaus Weide
Subject: Re: lynx-dev bug when submitting multiple textareas with same name?
Date: Mon, 19 Jun 2000 15:01:53 -0500 (CDT)

On Mon, 19 Jun 2000, Doug Yatcilla wrote:

> When I submit a form with multiple textarea elements with same name, lynx
> seems to concatenate all the data from the textarea fields and presents a 
> single field to a CGI program.

> I think this is a bug because the hidden, select and textfield elements
> behave differently than the textarea element.   
> I have tested this in lynx-2.8.2 and lynx-2.8.3 and get the same results
> both times.  I am running them on an HP-UX 11.00 system.

Yes, I can understand how that comes about.  It is a result of how lynx
represents TEXTAREAs internally.  They are basically converted to the
equivalent of a sequence of INPUT TYPE=TEXT fields, and collected back
together when it comes time to submit the form.  The information that
some of these fields come from different TEXTAREA elements gets lost,
if the NAME is the same.

I think all versions of lynx behave this way, this mechanism hasn't
changed much for a long time.  Stranger things may happen if there
are other form controls in between two equally-NAMEd textareas, but
I have not tested it.

I agree that this is a bug.  OTOH, shouldn't the NAME attributes of
form control elements always be unique (with exception of radio
buttons)?  Why would anyone want to use a form like this?


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]