| 
	
 | 
 Posted by Andy Hassall on 06/12/52 11:59 
On 29 Sep 2006 11:41:09 -0700, "One" <david.hunter@gmail.com> wrote: 
 
>I have a main.php file that calls a php navigation menu. 
> 
>I want to pass the menu file a parameter to tell it which menu to 
>display. 
> 
>Inside the main.php I have : 
> include "/home/ottadca1/public_html/includes/leftnav.php?menuid=dave"; 
 
 You can't do that. "?" is for URLs, but you're specifying a filename. With the 
"?", you're specifying a filename that doesn't exist. 
 
 If you want to pass variables into the include file, just set them before you 
do the include, they'll be visible in the include file. (Or pass them as 
parameters to whatever functions you define in the include file). 
 
--  
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk 
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 
  
Navigation:
[Reply to this message] 
 |