Hi,
When i click one checkbox code below workes fine but, more than one, noo. I cant find the problem. Can you help me please?
Thnaks
1st page.
<td><input type="checkbox" name="checkboxReceipt<?php echo "[$newArray[id]]"; ?>" value="<?php echo $newArray['id']; ?>" id="checkboxReceipt"></td>
2nd page.
if (isset($_POST['checkboxReceipt'])){
$sql="UPDATE payment SET";
foreach ($_POST['checkboxReceipt'] as $key=>$value)
$sql.=" Ref='xxx', date='xx-xx-xxxx' WHERE id='$checkedReceipt[$key]',";
$sql=substr($sql,0,-1);
$sql.=";";
$run = mysql_query($sql);