Forum Moderators: coopster
Here is my script:
<?php
$query = "SELECT * FROM pictures ORDER BY filename ASC";
$result = mysql_query($query);
while($r=mysql_fetch_array($result))
{
$pid = $r["pictureid"];
$filename = $r["filename"];
$caption = $r["caption"];
echo "<input type=\"checkbox\" name=\"picture\" value=\"$pid\"> $filename <input type=\"text\" name=\"caption\" length=\"45\" value=\"$caption\">\n<br>";
}
?>
On my action page, if I just echo the value for the checkboxes, $picture, it spits out the most recent one, not an array of all the boxes I've checked like I thought it would.
Any help you guys can give me, I would appreciate it!