Thanks, that worked, and made it alot clearer. Andy
"John Holmes" <[EMAIL PROTECTED]> wrote in message 000501c21d12$f4907580$b402a8c0@mango">news:000501c21d12$f4907580$b402a8c0@mango... > > if ($viewsystem = = 1) > > $Str = "editexemptfiles.php?every = 1"; > > > > require($Str); > > You don't pass variables to a require()'d file. Any variable in the > current scope is available in the included()'d, require()'d file. > > So just require($editexemptfiles.php); and in that file, $every will be > available, automatically. > > Think of include() and require() as a cut and paste operation. When you > use either function, it's just like taking that file and copying it into > the code at that point. So anything available to the main script at that > point is available to the included/required file. > > ---John Holmes... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php