php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26044 Select Multiple $BID[] issn't set?
Submitted: 2003-10-30 13:59 UTC Modified: 2003-10-30 20:32 UTC
From: martijn at fenomedia dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4RC3 OS: FreeBSD 4.8
Private report: No CVE-ID: None
 [2003-10-30 13:59 UTC] martijn at fenomedia dot com
Description:
------------
I have two select boxes, to link news items.


Reproduce code:
---------------
Article name

All articles:
<form method=post action="<?=$_SERVER['PHP_SELF']?>">
<select name="nid" multiple size=10>
 <option value=1>Article name
 <option value=2>Article name
</select>

Linked articles:
<select name="bid[]" multiple size=10>
 <option value="1>Article name
</select>
</form>

on the top of the page i do a 
if (isset($_POST['BID']))
{
  ' it never get's here!!
  $tmp = $tmp = $_POST['BID'];

}
else
{
 ' I print the form
}





Expected result:
----------------
$tmp = $_POST['BID'];

should contain an array of id's...

Actual result:
--------------
$tmp = $_POST['BID'];

Notice: Undefined index: BID 

even with the following option in php.ini
always_poulate_raw_post_data

I'll get only the NID!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-30 20:32 UTC] sniper@php.net
There's no bug, fix your code/config. (this works fine in properly setup systems and working code)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 03 15:00:03 2025 UTC