PHP include() doesn’t pass variables!

Really wanted it to…

Seemed logical enough…

index.php: <? include(‘some_file.php?id=3’); ?>

some_file.php: <? echo $receive_id = $_GET[‘id]; ?>

BUT ALAS, NO

Alternatively, simply set the variable, and the included script may access it just as though it were the parent script…duh.

Comments are closed.