Forum Moderators: coopster
$filename="foo";
$fileclass="bar";
$include = $filename$fileclass
print $include;
If the url looks good, change the last line to:
include ($include);
Also bookmark the PHP [php.net] manual. It's very useful!
$filename="foo";
$fileclass="bar";
$include = $filename$fileclass
print $include;
If the url looks good, change the last line to:
include [php.net] ($include);
Also bookmark the PHP [php.net] manual. It's very useful!
OOOPS!
[edited by: Birdman at 10:11 pm (utc) on Mar. 7, 2003]
a) use the $fileclass in the included file (included file inherit the scope where they're included)
or
b) just before your include, set $id = $fileclass (that won't work if you're retrieving the id var through $_GET[] though)
mavherick