passing variables need help

From: Date: Mon, 15 Jul 2002 13:39:50 +0000
Subject: passing variables need help
Groups: php.dev 
Request: Send a blank email to php-dev+get-85934@lists.php.net to get a copy of this message
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 (#85934) next »