RE: [PHP] include("blah.php?var=this"); doesn't work?!

From: Date: Thu, 08 Feb 2001 18:04:14 +0000
Subject: RE: [PHP] include("blah.php?var=this"); doesn't work?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38786@lists.php.net to get a copy of this message
Adding ?asin=$asin doesn't make much sense but do it like this: include('book_reviews.php?asin=' . $asin); -Brian ************ > -----Original Message----- > From: John Vanderbeck [mailto:agathorn@cfl.rr.com] > Sent: Thursday, February 08, 2001 12:27 PM > To: php-general@lists.php.net > Subject: [PHP] include("blah.php?var=this"); doesn't work?! > > > I need to be able to do: > > <? > if (isset($asin)) > { > include("book_reviews.php?asin=$asin"); > } > else > { > include("book_reviews.php"); > }?> > > This is embeded in one of my sites pages..However, the call with the var > added on won't work, it seems like its looking for a file with that whole > name. Does anyone know how I can do this? > > - John Vanderbeck > - Admin, GameDesign > > > -- > 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 (#38786) next »