obanana_b2b_test/admin/user-card-action.php

19 lines
383 B
PHP

<?php
include "../functions.php";
$id = $_POST['_id'];
$username = $_POST['username'];
$userType = $_POST['user_type'];
$token = $_SESSION["token"];
$response = editUsers(
$id,
$username,
$userType,
$token);
$array = json_decode($response,true);
echo $array;
// $_SESSION['productId'] = $array['_id'];
header("location: user-card.php");
?>