$_COOKIE[name] is here!"; echo "

Number of visits: $_COOKIE[visits]

"; // update the cookie to reflect another visit to page setcookie ("visits", $_COOKIE["visits"]+1, time()+1000); } else echo "

Name not found

"; ?>