php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14
Submitted: 1998-01-27 05:26 UTC Modified: 1998-01-27 10:58 UTC
Votes:3
Avg. Score:4.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:2 (200.0%)
Same OS:3 (300.0%)
From: wombat at hof dot baynet dot de Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0b3 OS:
Private report: No CVE-ID: None
 [1998-01-27 05:26 UTC] wombat at hof dot baynet dot de
PHP does not handle POST data correctly. If I write a HTML Form that
sends some information to the .phtml script, it *does* set the variables
(<input ... name="var" value="val"> DOES result in $var = "val", but $argv
and $argc are not set correctly ($argv[0], $argv[1] etc do not return anything)

html:
<form method=POST action="test.phtml" enctype="application/x-www-form-urlencoded">
<input type="text" name="variable" value="value">
<input type="submit" value="Submit">
</form>

phtml:
<?; echo $argc; echo $argv; echo $argv[0]; echo $argv[1]; ?>

Possible solution: can I read data directly from STDIN ?

There are no extras compiled in php, except the Apache Support (running Apache 1.3)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-01-27 10:58 UTC] rasmus
Not a bug.  $argc and $argv are not supposed to be set for POST data.
They are only set for GET data.
 [2012-06-05 12:11 UTC] ohill@php.net
Automatic comment from SVN on behalf of ohill
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=325986
Log: Update test #14 to cope with recent lib changes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC