Make your own free website on Tripod.com
Home     My Faqts     Contributors     About     Help    

FAQTS : Computers : Programming : Languages : PHP : Language and Syntax : Functions

Entry Add Entry Alert - Edit this Entry

Did You Find This Entry Useful?

6 of 6 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Passing Variables with REQUIRE FUNCTION

Feb 24th, 2000 13:59

Andrew Sheh
Tim Fountain


>I tried using this code but it didn't work:

>require("list.php3?cat=adco&area=all");

>It seems this function will only take an actual file name. Is there a 
>way around this?

ANSWER
As 'require' simply puts the file in the page you're calling it from,
you can set the variables there.  Eg.:

$cat = "adco";
$area = "all";
require("list.php3");



1999-2000 Synop Software