Ok this is a real PHP question this time.
I have a page, which has an include file. I want to be able to pass a value from the page in to the include.
Anyone know how this is done?
You should use require in place of include
require("index.php?send=true");
If you are including a local file you only need to set the variable before including the script.
<? $text='hello'; include( 'world.php' ); ?> world.php <? echo "$text world"; ?> Output = hello world
If you want to send $_GET variables as in srikanth1184's example you need to use the full [url]http://[/url] path.
include( "http://www.mydomain.com/script.php?vars=12" );
HalfaBee