Answers for "getcookie() php"

PHP
1

get a cookie in php

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

withcookie function in php

//setcookie(name, value, expire, path, domain, security);
//understand first line and then implement the second one
setcookie($name, $value, 5, "/");
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language