It must be something I cant see. It is driving me nuts.
I have these 2 values in a form
[code=php]
<select name=”existingPlayer[]” multiple=”true” >
<?php
$query = “edit”;
$results = querydatabase ($query);
while($row = mysql_fetch_assoc($results))
{
echo “<option value=””.$row[“player”].””>”.$row[“player”].”</option>”;
}
?>
</select>
<input type=”text” name=”player” size=”100″ maxlength=”100″ /></td>
the form returns
[code]
[“existingPlayer”]=> string(12) “Aaron Rowand” [“player”]=> string(14) “fsfgdgdfgsgdsg”
my code to read it is
[code=php]
$players = $_POST[“player”];
$playersTemp = $_POST[‘existingPlayer’];
var_dump(@playersTemp);
if ($playersTemp)
{
echo “<br />1<br />”;
foreach ($playersTemp as $player)
{
echo “<br />2<br />”;
$players = $player.”/”.$players;
}
}
I am never getting to the 2 above.
What am I doing wrong? I have been looking at this for a while and something this simple shouldn’t be this problematic.
tia