DEMO : PHP reading cookies
No Cookie is set
if(isset($_COOKIE['Plus2netCookie'])){
echo "<div class='alert alert-info'>
<div class='row'> <div class='col-md-4'> <b>Name</b> </div><div class='col-md-4'>".$_COOKIE['Plus2netCookie']['name']."</div></div>
<div class='row'> <div class='col-md-4'> <b>City</b> </div><div class='col-md-4'>".$_COOKIE['Plus2netCookie']['city']."</div></div>
<div class='row'> <div class='col-md-4'> <b>State</b> </div><div class='col-md-4'>".$_COOKIE['Plus2netCookie']['state']."</div></div>
<div class='row'> <div class='col-md-4'> <b>Zip</b> </div><div class='col-md-4'>".$_COOKIE['Plus2netCookie']['zip']."</div></div>
</div><br><br><div class='alert alert-warning'>";
print_r($_COOKIE[Plus2netCookie]);
echo "</div>";
}else{
echo " No Cookie is set ";
}
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com
|