Help with querystring error.
I am try to pass a query string to the same page but having problem
This is my code:
<HTML><BODY>
<div align=center>
<A href="?page=1">Page 1</A> -
<A href="?page=2">Page 2</A> -
<A href="?page=3">Page 3</A>
</div><hr>
<? switch($page) {
case "1" :?>
THis is page one
<? break; case "2" :?>
This is page two
<? break; case "3" :?>
This is page three
<? break; default:?>
This is the default page
?}
?>
</BODY></HTML>
Why am I having the following error:
Notice: Undefined variable: page in c:\inetpub\wwwroot\ex1\qstring.php on line 7
I appreciate any help
thanks
tip