> <html>
> <head>title</head>
> <body>
> <?php if ($somevar) {
> # make data call here returning some data
> ?>
> This is page with somevar.
> <?php } else { ?>
> This is without somevar.
> <php } ?>
> </body>
> </head>
>
> $somevar could be sent by post (form) or get (query string).
I would recommend that you use the $_POST['somevar'] or respective the
$_GET['somevar'] vars to read your parameter from the header. Of course,
Tyrone sample is good and work perfekt, but also if you start php coding,
learn how to use parmeter in a more secure way.
You can build a link to parse a varialbe to your page:
echo '<a href="test.php?var=' . $value . '">sent var</a>';
if (issset($_GET['var']))
echo $_GET['var'];
More detail information
www.php.net/manual/en/
Michael