//به نام خداوند بخشاینده مهربان
hi
<?php
include '../shares/pathOfURL.php';
if (isset($_POST['number']) && isset($_POST['type'])) {
$number = $_POST['number'];
$cardTypeId = $_POST['type'];
$selectedCard = $_COOKIE['type'];
$selectedCard = $cardTypeId.':'.$number;
$_COOKIE[$cardTypeId] = $selectedCard;
setcookie($cardTypeId , $selectedCard , time()+3600);
}
echo '
'; print_r($_POST); print_r($_COOKIE); print_r($_SESSION); echo '
'; //print_r($_REQUEST); print_r($_GET); echo '';
?>