Re: not working
| From: | Philip Olson | Date: | Thu, 22 Mar 2001 03:35:01 +0000 |
| Subject: | Re: not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45068@lists.php.net to get a copy of this message | ||
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
>