php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5018 problems in post variables
Submitted: 2000-06-14 02:13 UTC Modified: 2000-06-14 07:40 UTC
From: apitta at uol dot com dot br Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.0 Release OS: UNIX Solaris / Linux Slack
Private report: No CVE-ID: None
 [2000-06-14 02:13 UTC] apitta at uol dot com dot br
When I used other languages to develop websites, usually the submit with method post put in the same var all values with the same name. Ex: I have a form with 5 checkbox with the same name. If I checked all over, the submit for example in Cold Fusion or ASP will be var_name = 1, 2, 3, 4, 5. In PHP, the post will be just the last checked value. I already searched docs about it but I didnt found. The problem is that I cant work with the querystring in the post mode.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-14 07:40 UTC] rasmus at cvs dot php dot net
Just name your form element something like: name="var[]" 
and you will get an array $var which contains all the values.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 10:00:01 2026 UTC