Answers for "can you call a javascript cookie using php"

PHP
0

get a cookie in php

<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Posted by: Guest on October-01-2020
0

can you call a javascript cookie using php

<script>
document.cookie = 'name=David' ;
</script>
Page: get_cookie.php
<?php
var_dump($_COOKIE['name']);
?>
Posted by: Guest on April-14-2022

Code answers related to "can you call a javascript cookie using php"

Browse Popular Code Answers by Language