Re: include file with parameters

From: Date: Tue, 12 Nov 2002 13:25:56 +0000
Subject: Re: include file with parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123981@lists.php.net to get a copy of this message
On Tuesday 12 November 2002 15:55, Fikret CAN wrote: > hello PHP developers, > > I am going to convert a site that works with frames to the equivalent with > includes. I have several template files whic behaves according to query > string parameters. I don't want to make big changes, just make it work. > <?php > include("tmplt1.php?var1=val1&var2=val2"); > ?> Try this way: <?php $var1=val1; $var2=val2; include("tmplt1.php"); ?>

« previous php.general (#123981) next »