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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 20 04:01:28 2024 UTC