Hi!
I'm trying to create a news system with the possibility of using checkboxes to determine if an article should be posted on the front page or not.
In the admin panel I list all news in the database using a while function, which prints a checkbox for each listing.
I've had some help with this, and the suggestion was to use arrays to retrieve the data from the checkbox.
<input type="checkbox"
<? if ($frontpage == 'Yes') { ?> checked="checked" <? } ?> name="checkbox<? echo "$j";?>" value="<? echo "$id";?>" />
When trying to retrieve the data from the checkbox, I've created a similar while function with the following code:
while ($j < $num)
{ $value = $_POST['checkbox'];
echo "$value[$j]"; $j++; }
This doesn't give me any data in return.
Input and help would be much appreciated.