<? if ($HTTP_COOKIE_VARS["cookie"]!="") { echo $HTTP_COOKIE_VARS["cookie"]; exit; } CODE TO EXECUTE IF COOKIE IS NOT PRESENT ?>