Closed Bug 64770 Opened 25 years ago Closed 25 years ago

PHP-style forms with arrays are not compatible with Mozilla

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: bunkin, Assigned: rods)

Details

Attachments

(1 file)

PHP allows using arrays in the forms, so the multiple select or check boxes would appear as PHP arrays in the script. This is done by specifying <select multiple name="beer[]">. Pay close attention to [] signs. When submitting such form from any browser (IE, Netscape 3, Opera, etc) it works fine. When submitting from Mozilla (final 6.0 release), it works as if it was not an array but a simple variable, sending one single value for multiple select field. Also such problem seem to appear in new AOL browser, though I have no detailed information on this topic. I know that specifying beer[] instead of beer is breaking some old dusty w3c standard, but such forms are used on many sites, and there is no alternative way of doing this for developers, so I beg you at Mozilla.org to let us developers use the PHP arrays in the forms.
Reporter: could you please read the Bug Writing Guidelines at: http://www.mozilla.org/quality/bug-writing-guidelines.html ...to see the kinds of information we need in a bug report. Please report back with more information (like BuildID and most importantly a testcase) after reading those guidelines and consider using the Bugzilla Helper to report future bugs. The Helper can be found at: http://www.mozilla.org/quality/help/bug-form.html Thanks for your help in testing Mozilla!
Keywords: qawanted
When I try a form with such a select element, mozilla seems to be sending the right thing to the server (linux build 2000-01-05-08). Attaching testcase.
On WinNT I get exactly the same results that I do with Nav 4.x
WORKSFORME Platform: PC OS: Windows 98 Mozilla Build: 2001011204 & Platform: PC OS: Linux 2.2.16 Mozilla Build: 2001011204
Marking WORKSFORME. The layout problem in the returned page is bug 65143.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Verifying on windows 2000 build 2001-01-26-10-MTEST
Status: RESOLVED → VERIFIED
Keywords: qawanted
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: