10-11-2018, 12:14 PM
(This post was last modified: 10-11-2018, 03:32 PM by usamusa.
Edit Reason: typo
)
I think your input should be something like:
and the form processing code:
Code:
<input type='checkbox' name='clone[userId]' id='clone[<? echo "$userId"; ?>]'
value='<?php echo "$userId"; ?>' <?php if (!checkMenu(2,$user->data()->id) || $userId == 1){ ?>disabled<?php } ?>>
and the form processing code:
Code:
if(!empty($_POST['clone'])){
$userID = $_POST['clone']['userId'];
$db->insert("members", ["memberid"=>$userID]);
}