The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
What I mean is, you know the way you can target an input box by using '?id=whatever' in the URL, can you do this with the PHP include thingy?
e.g.
I have a file called 'index.php' and a link inside that calls the 'index.php' file, but gives the include function a different file to reference.
Do you get what I mean yet?
include("file.foo");
?>
or...
include("$referenced");
?>
It's dead easy. It will also parse any PHP code inside the file that is enclosed in in
NOTE:
You can't do include("file.php?foo=bar");, you just need to set the variable with $foo = "bar"; before you call include();.
Also note that this IS different to require();. For more information, RTFM:
http://www.php.net/manual/en/function.include.php