<?php session_start(); include('../config/database.php'); $currencyType = $_GET['currencyType']; $_SESSION['currency'] = $currencyType; $arr = array("status"=>1, 'currencyType'=>$currencyType); echo json_encode($arr); ?>