I have a following code in PHP and HTML
<?php
$count = 0;
while ($row = mysqli_fetch_array($result)) {
?>
<tbody>
<tr>
<td><input name="tableRow1[<?php $count; ?>]["InvoiceNum"]" id="InvoiceNum" type="text" value="<?php echo $row['InvoiceNum'];?>" ></input> </td>
<td><input name="tableRow1[<?php $count; ?>]["StoreName"]" id="StoreName" type= "text" value="<?php echo $row['StoreName'];?>" ></input></td>
<td><input name="tableRow1[<?php $count; ?>]["Driver"]" id="Driver" type= "checkbox" value= "<?php echo $login_session;?>" ></input></td>
</tr>
<?php $count++;
}
?>
</tbody>
</table>
<?php
}
?>
I have an array and it gets value from 2 column of a database and 1 user input from checkbox. And I am trying to pass value from unchecked checkbox, but I haven't been successful so far. I tried to use too but still no success yet.
If someone can help me pass both checked and unchecked value from checkbox I shall be highly grateful.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire