Re: not working

From: Date: Thu, 22 Mar 2001 04:04:06 +0000
Subject: Re: not working
Groups: php.general 
Request: Send a blank email to php-general+get-45069@lists.php.net to get a copy of this message
Well Im trying to use a template system for pages. php4 bible lists it as sort of a GET method of handling links rather than creating all of the pages, you just use template with includes >What are you wanting to do? Let's assume : > >a. You want soon-to-be-included file names to depend on values > passed through the url QUERY_STRING (links). (also, be careful) >b. The file containing this code is called home.php > >Let's slightly modify your code : > ><table><tr><td><a >href="home.php?name=test"><b>Test</b></a></td> ><td><?php if (isset($name)) { include "$name.inc"; } >?></td></tr></table> > >Is that what you're wanting to do? Btw, it's looking for home.php because >that's what your link referring to, it isn't trying to include it ... >let's hope not at least :) So perhaps currently the file holding this >code isn't home.php when it should be. > >Regards, > >Philip > > >On Wed, 21 Mar 2001, Wade DeWerff wrote: > >> this is opening home.php instead of the test include file..whats wrong? >> >> <table><tr><td><a >> href="home.php?Name=test"><b>Test</b></a></td> >> <td><? include("$Name.inc"); ?></td></tr></table> >> >> >> -- >> 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 >> > > >-- >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 (#45069) next »