PHP Session et Cookies: Lire les données du Cookies

Author:
 
<?php
  $user  = $_COOKIE['firstname'];
  $color = $_COOKIE['fontcolor'];
?>
 
<html>
 
 <head>
  
  <title>Get Cookie Data</title>
  
  <style type = "text/css">
 
   body { color: <?php echo( $color ); ?> }
 
  </style>
 
 </head>
 
 <body>
 
  <h1>Hello <?php echo( $user ); ?>! </h1>
 
 </body>
 
</html>
  
  

Leave a Reply

Your email address will not be published. Required fields are marked *


six − 3 =