Nie wiem czemu, ale FF nie wyswietla mi kompletnie tablicy odbieranej w POST, IE wykrywa bez problemu.
Tutaj wysylam:
Kod
<select id="cities" multiple="multiple" name="cities[]" title="Click to select">
<?php
$sQuery = mysql_query("SELECT * FROM lista");
while ($sRow = mysql_fetch_row($sQuery))
{
if( $stid == $sRow[0] ) {
print ("<option selected value='$sRow[0]'>$sRow[1]</option>");
} else {
print ("<option value='$sRow[1]'>$sRow[1]</option>");
?>
</select>
<?php
$sQuery = mysql_query("SELECT * FROM lista");
while ($sRow = mysql_fetch_row($sQuery))
{
if( $stid == $sRow[0] ) {
print ("<option selected value='$sRow[0]'>$sRow[1]</option>");
} else {
print ("<option value='$sRow[1]'>$sRow[1]</option>");
?>
</select>
A tu odbieram:
Kod
<?php
$a = $_POST['cities'][0];
$b = $_POST['cities'][1];
$c = $_POST['cities'][2];
$d = $_POST['cities'][3];
$e = $_POST['cities'][4];
$f = $_POST['cities'][5];
$a = $_POST['cities'][0];
$b = $_POST['cities'][1];
$c = $_POST['cities'][2];
$d = $_POST['cities'][3];
$e = $_POST['cities'][4];
$f = $_POST['cities'][5];
print_r ($_POST) zwraca wszystko oprocz wyzej wyslanej zmiennej cities (dzieje sie to w FF)
Dziwne ale upgrade przegladrki FF pomogl.