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
> [EMAIL PROTECTED]
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to