you can't use a variable as a parameter for the included file... because include does nothing else then putting the text of the include file on the place of the include statement...
so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward ----- Original Message ----- From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 10:20 PM Subject: [PHP] include() question > Why doesn't this work... > > include("index.php?var='$var'); > > I want to include a page in my code and send a variable to it but I get > some funky error. > > THANKS!! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php