19 lines
399 B
PHP
19 lines
399 B
PHP
<?php
|
|
include "../functions.php";
|
|
session_start();
|
|
$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");
|
|
?>
|