php.net |  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
Votes:1
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
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: wombat at hof dot baynet dot de
New email:
PHP Version: OS:

 

 [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] = "FROM=email@address.com"
etc

or:
 $argv[0] = "FIELD1"
 $argv[1] = "Test"
 $argv[2] = "FROM"
etc.

Patches

Pull Requests

History

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:

  $HTTP_POST_VARS
  $HTTP_GET_VARS 
  $HTTP_COOKIE_VARS

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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC