QUOTE(Maria T @ Jun 2 2007, 07:51 PM)

Hi,
How do you pass a parameter into an include file? I tried the following but it doesn't work.
include "myfile.php?var=123";
and in myfile.php, I try to retrieve the parameter using $_GET["var"].
Any hints? Thanks.
You do not need to "pass a parameter" into an include file - when you write the "include" in php this literally includes the text of the file at that point. So for example, suppose inside the included file is a reference to a variable $fish, then this will happily access this variable directly, if it is set outside the "include". E.g.
$fish = 'haddock';
...
include 'fishing.inc';
And suppose fishing.inc contains:
<?php // remember you need to add this so the included file is parsed by php
echo "I like $fish";
Then the result will be to print "I like haddock".
(Incidentally, do you know what makes St John's Wood station unique on the London UndergrounD?)