The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option to Insert record in admin_user.php
#2
I think your input should be something like:
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]);
}
  Reply


Messages In This Thread
RE: Option to Insert record in admin_user.php - by usamusa - 10-11-2018, 12:14 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)