Edit report at https://bugs.php.net/bug.php?id=14&edit=1
ID: 14 Comment by: junxing dot lin at yahoo dot com Reported by: wombat at hof dot baynet dot de Status: Closed Type: Bug Package: Parser error PHP Version: 3.0b3 Block user comment: N Private report: N New Comment: http://www.chishairstraighteners.net chi flat iron http://www.chishairstraighteners.net chi flat irons http://www.chishairstraighteners.net chi hair straightener http://www.chishairstraighteners.net chi hair straighteners Previous Comments: ------------------------------------------------------------------------ [1998-01-27 10:58:57] rasmus Not a bug. $argc and $argv are not supposed to be set for POST data. They are only set for GET data. ------------------------------------------------------------------------ [1998-01-27 05:26:17] 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=14&edit=1