Bug #16195 Updated: GET/POST-vars does not work according to standards

From: Date: Sun, 14 Jul 2002 19:06:39 +0000
Subject: Bug #16195 Updated: GET/POST-vars does not work according to standards
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14151@lists.php.net to get a copy of this message
ID: 16195 Updated by: markonen@php.net Reported By: mail4news@mailme.dk -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: All PHP Version: 4.1.2 New Comment: Okie, I'm stoopid and need to learn to read the w3c ciphertext Previous Comments: ------------------------------------------------------------------------ [2002-07-14 14:49:20] markonen@php.net No, mail4news@mailme.dk seems to be reading the spec correctly. The value of a NAME attribute is a NAME token. So, there is currently no standards-compliant way to retrieve the values of a SELECT MULTIPLE input of a POST form in PHP. While Rasmus is correct in saying that standards matter very little on the web today, I refuse to accept that * blocking* people from using standards-compliant markup is the right way to go for PHP. This data needs to be available *somehow*. Magic arrays are not the right way to go, but one should be able to replicate the [] behaviour in a standards-compatible token. ------------------------------------------------------------------------ [2002-07-14 13:14:54] derick@php.net Actually, you don't read the standards very well. I have to admit reading it wrong too, but the standard says: "ID and NAME **tokens**" and the NAME attribute to select or input is an ATTRIBUTE, not a TOKEN. Now get over it, it's conforming to the standards perfectly. Derick ------------------------------------------------------------------------ [2002-07-14 13:11:16] rasmus@php.net No, until such a time that a browser exists where [] doesn't work, I see no reason to change anything. Standards mean very little on the web. Most of the web is completely non-standard as it is. ------------------------------------------------------------------------ [2002-07-14 13:09:10] mail4news@mailme.dk Perhaps two new arrays should be included, like _GETA and _POSTA that will return an array instead of a single value? ------------------------------------------------------------------------ [2002-07-14 13:07:13] rasmus@php.net Tough - this won't change ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16195 -- Edit this bug report at http://bugs.php.net/?id=16195&edit=1

« previous php.bugs (#14151) next »