Re: variables include

From: Date: Sat, 02 Dec 2000 00:42:32 +0000
Subject: Re: variables include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28327@lists.php.net to get a copy of this message
Yea try this: <?php include($page . ".php") ?> Toby Butzon [ criticism spurs improvement ] ----- Original Message ----- From: "David Smith" <webmaster@indywebdesign.com> To: "PHP List" <php-general@lists.php.net> Sent: Friday, December 01, 2000 7:39 PM Subject: [PHP] variables include : : : Hi all, I am new and tring to do this: : : 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" : : Any ideas to get me going? : : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net : For additional commands, e-mail: php-general-help@lists.php.net : To contact the list administrators, e-mail: php-list-admin@lists.php.net : :

« previous php.general (#28327) next »