php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10377 PHP forces illegal HTML
Submitted: 2001-04-18 09:44 UTC Modified: 2001-04-18 09:54 UTC
From: have at none dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.4pl1 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: have at none dot com
New email:
PHP Version: OS:

 

 [2001-04-18 09:44 UTC] have at none dot com
$HTTP_GET_VARS and $HTTP_POST_VARS force us to use illegal HTML. This is because we have to add "[]" after a checkbox name if we want to access all values.

Suggested fixes:

1. $HTTP_GET_VARS could return an array.
2. Create environment variables $HTTP_GET/POST which includes the parameters in the standard way (like "name=value&name2=value2" etc.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-18 09:54 UTC] derick@php.net
1. $HTTP_GET_VARS is an array (try var_dump ($HTTP_GET_VARS));
2. You can get the whole query string: $HTTP_SERVER_VARS["QUERY_STRING"];

and

3. You don't need to use the [], it's up to you how you use it. It merely gives you a nice function.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 16:01:31 2025 UTC