Re: Problems using include

From: Date: Thu, 07 Sep 2000 15:37:22 +0000
Subject: Re: Problems using include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15733@lists.php.net to get a copy of this message
Hi, Don't work because PHP engine try to include a file named: file.phtml?var=value ...that not exists (file name is file.phtml) You can initialize vars before include file.phtml. $var1="hola"; include "file.phtml"; _____ file.phtml_____ echo $var1; __________________ Kike wrote: > Hi everyone, > I need to use the include statment but I need to pass a variable to the file included. I try > this way: > include ("file.phtml?var=value") > but it doesn't work. > Can you help me please?.

« previous php.general (#15733) next »