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:2
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:2 (200.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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but 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-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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 14:01:29 2024 UTC