PHP: Retrieve Cookie
<?php $var1 = 0; if (isset(_COOKIE['name'])) { $var1 = $_COOKIE['name']; } echo $var1; ?>