Hi,
I have to pass variable on include include("includes/include.php");
include("includes/include.php?name=$name"); wouldn't work.
How do I do that? Cokies are not an option, btw.
Code in includes/include.php is executed in the scope of the including file, so all variables available at the include() will be available in the included file. Thus the solution is:
$name = 'Your Name'; include("includes/include.php");
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php