Re: variables include
| From: | jeremy brand | Date: | Sat, 02 Dec 2000 00:52:47 +0000 |
| Subject: | Re: variables include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28329@lists.php.net to get a copy of this message | ||
> page.php?page=apage
>
> I know that <? echo "$page"; ?> will display the value or "apage' in
> this
> case.
>
> I want to somehow do this...
>
> <?php include ('$page.php') ?> so that it includes "apage.php"
<?php
include ($page . '.php');
?>
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
---- "World domination through Yahoo Replication" ----
---- -Liz Patterson http://www.geekchix.com
----