Re: passing variables need help

From: Date: Mon, 15 Jul 2002 22:07:34 +0000
Subject: Re: passing variables need help
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85944@lists.php.net to get a copy of this message
Hello John- Please consider the following two locations: http://www.php.net/support http://www.php.net/variables.external Regards, Philip Olson On Mon, 15 Jul 2002, John Flanagan wrote: > Lo, > > I am a just starting with PHP and I am in the middle of building a site. What my question is; > > If I pass a variable to a page by www.mysite.com/index.php?page=support how do I grab that > variable and use it in the index.php. > > I want to use the same index.php for the whole site and when I get the variable eg support pass > it in to a variable like "pages/{$page}.php"; to stop any directory transversal attacks. > > I would appreciate it if anyone could tell me how to get the variable from the URL. > > > Cheers, > > John F > John.Flanagan@akad.ie > >

« previous php.dev (#85944) next »