<?php // if your url is http://link?var=value if (isset($_GET['var'])) // works with request $var = $_GET['var']; echo $var; // output value