Lionel
12-29-2005, 02:10 AM
I have this for retrieving multiple checkboxes values (I never know how many because they are dynamically generated)
$foo2 = $_POST['predplayer2'];
if (count($foo2) > 0) {
for ($i=0;$i<count($foo2);$i++) {
$tplayer2="$foo2[$i]|";
}
}
When I echo $tplayer2;
I have player1|player2|player3| etc...
when I do my insert, only one value goes in there player1|
I do ...,'$tplayer2',...
$foo2 = $_POST['predplayer2'];
if (count($foo2) > 0) {
for ($i=0;$i<count($foo2);$i++) {
$tplayer2="$foo2[$i]|";
}
}
When I echo $tplayer2;
I have player1|player2|player3| etc...
when I do my insert, only one value goes in there player1|
I do ...,'$tplayer2',...