<html> <head> <title>Reporting User Agent and Referrer</title> </head> <body> <div> <p> Browser: <b><?php print $_SERVER['HTTP_USER_AGENT'] ?></b><br /> Referring page: <b><?php print $_SERVER['HTTP_REFERER'] ?></b> </p> </div> </body> </html>