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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to