From:             martijn at fenomedia dot com
Operating system: FreeBSD 4.8
PHP version:      4.3.4RC3
PHP Bug Type:     *General Issues
Bug description:  Select Multiple $BID[] issn't set?

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!

-- 
Edit bug report at http://bugs.php.net/?id=26044&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26044&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26044&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26044&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26044&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26044&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26044&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26044&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26044&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26044&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26044&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26044&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26044&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26044&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26044&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26044&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26044&r=float

Reply via email to