> 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