Try this way:

in your php script:
$foo = "something";
print "$bar";

in your file.php (included):
globals $foo;

$bar = $foo." working";

I think this example will help...


----- Original Message -----
From: "TorrentUK" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 1:16 PM
Subject: Re: [PHP-DB] Problem with include()

> According to the php manual it can pass args and values.
> The value I pass in through the $id then determines what poll  is
> to the visitor (poll.php opens a file called $id.txt, which contains the
> poll's title, values, etc). So I set the id variable depending on where
> poll script is invoked (i.e. what will the visitor be voting for at this
> point).
> I'm confused. I going to have to think of a work-around (sometimes known
> a kludge :) )
> Thanks
> -torrent

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to