Re: Problems using include
| From: | Martin | Date: | Thu, 07 Sep 2000 10:34:43 +0000 |
| Subject: | Re: Problems using include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15682@lists.php.net to get a copy of this message | ||
Hi Kike,
you could not send variables like this in include. Imagin the
include-statement as a text-replace: The code of the include statement
is paced where the include-statement is. So you could set a variable
like this:
$var=value;
include "file.php"
$var will be available in file.php.
Regards
Martin
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?.