|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-08-19 18:52 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 18:00:02 2025 UTC |
I'll give you two HTML pages with PHP3 code embedded. I'm using PHP3 in CGI style. Loading the first page, and pressing "Go", teorically the browser sends two array elements to the server: $argv[0] and $argv[1]. But PHP3 does not initialize this elements as array again in the 2nd page. This case worked with PHP2. A similar case was covered in PHP2 manual under the chapter "SELECT MULTIPLE and PHP". But this chapter does not exist in PHP3 manual. Array's initialization seems to work equal as it do in PHP2 so I've looked for this in the FAQ, but I didn't find any topic related. All of this makes me think it's a bug. Sorry for any inconvenience if it is not. Regards, Carlos. ------ page 1: array1.phtml ------ #!/usr/bin/php3 <html> <body> <? $argv[0]= "opcion 0"; $argv[1]= "opcion 1"; ?> <form action="array2.phtml" method=post> <input type=hidden name="argv[0]" value="<? echo "$argv[0]"; ?>"> <input type=hidden name="argv[1]" value="<? echo "$argv[1]"; ?>"> <input type=submit value="Go!"> </form> </body> </html> ------ ------ Page 2: array2.phtml ------ #!/usr/bin/php3 <html> <body> <? echo "($argv[0]) - ($argv[1])"; ?> </body> </html> ------