|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57 Wanted: $argv/$argc for POST method
Submitted: 1998-02-11 12:50 UTC Modified: 1998-02-11 13:15 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: wombat at hof dot baynet dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0b4 OS: Linux 2.0.32
Private report: No CVE-ID: None
 [1998-02-11 12:50 UTC] wombat at hof dot baynet dot de
For various scripts, I need the ability to read *all* variables that have
been sent to a .phtml page (for example a Form Email page with unlimited
number of fields). That feature is *really* needed.

$argc should contain the variable count,
$argv[0] ... $argv[$argc - 1] (???)  should contain variable name and
variable content (for example:
 $argv[0] = "FIELD1=Test"
 $argv[1] = ""

 $argv[0] = "FIELD1"
 $argv[1] = "Test"
 $argv[2] = "FROM"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-11 13:15 UTC] rasmus
The feature is already there.  The $argc/$argv variables are only for GET
method arguments.  To get what you want, compile PHP with --enable-track-vars
You will then have three associative arrays available on all your pages:


You can step through these with the key/next/prev functions.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 01:01:28 2024 UTC