Accessing GET Variables with include

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
There is probably an easy solution to this that I've overlooked

I have a main file, call it main.php, and an include file,
myInclude.php.  I'm accessing main.php via:

$page = $REQUEST['page'];
if($page=="new") include('myInclude.php');

and try to access var1 and var2 from the include:
$var1 = REQUEST['var1'];
$var2 = REQUEST['var2'];
both $var1 and $var2 are empty in myInclude.php.  How do I "see" var1
and var2 from myInclude.php?


Re: Accessing GET Variables with include

Quoted text here. Click to load it

It's spelled:

Site Timeline