php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #670 SELECT MULTIPLE (or similar) is not supported anymore
Submitted: 1998-08-19 18:45 UTC Modified: 1998-08-19 18:52 UTC
From: charly at openware dot com dot ar Assigned:
Status: Closed Package: Other
PHP Version: 3.0.3 OS: SCO UNIX OSE 5.0.2
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: charly at openware dot com dot ar
New email:
PHP Version: OS:

 

 [1998-08-19 18:45 UTC] charly at openware dot com dot ar
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>
------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-19 18:52 UTC] rasmus
$argv is a special array reserved for GET method arguments.  Pick another name and it should work fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 04:01:32 2024 UTC