seahorse123
Programmer
If I want to display the included file's information based on passed value, is it possible to do that?
for example:
file1.php:
<?
$a=$_GET['p'];
if ($a==1) {
print "ABCD";
}
elseif ($a==2) {
print "XYZ";
}
?>
file2.php:
<?
...
include "file1.php?p=1";
...
include "file1.php?p=2";
...
?>
so file2.php will display "ABCD" and "XYZ", if this cannot be done, how to use external function which is located in different file?
Thanks.