I am assigning the javascript value to php but plus sign is not exist in output after printing and cannot escape it.
<script type="text/javascript">
document.cookie = "mydata =index.php?test=1+test2=1";
</script>
<?php
$myPHPdata = $_COOKIE['mydata'];
echo $myPHPdata;
?>
Getting this output without plus sign(+) => "index.php?test=1 test2=1"
plus is mssign
How can i print plus sign too ?