php3-list | 200003
Date: 03/29/00
- Next message: À̺´¿: "[PHP3] PHP°ü·Ã ÀÚ·áÈñ¸"
- Previous message: Margie Wiers: "Re: [PHP3] php retains old info"
- In reply to: .:..:..:...Modest 013.::...:..:..:: "[PHP3] too complicated for a newbie?"
- Next in thread: Jason Brooke: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
what I would do is make the outcome a variable.
<a href="index.php3?link=about.inc">about</a>
<a href="index.php3?link=catalog.inc">catalog</a>
<a href="index.php3?link=foo.inc">foo</a>
then in the table
<table>
<TR>
<TD>
<?php include "/path/to/the/$link"; ?>
</td>
</tr>
</table>
voila :)
Louise
Project Manager
Alttech Ventures Corporation
http://www.alttech.net
http://www.tagtown.com
http://www.iptag.com
----- Original Message -----
From: .:..:..:...Modest 013.::...:..:..:
To: php3 <email protected>
Sent: Wednesday, March 29, 2000 5:30 PM
Subject: [PHP3] too complicated for a newbie?
Hopefully I can clearly explain what I'm trying to accomplish ...
I have created a page (index.php3) that I would like to use as the
template for all content to flow into. The header, footer and right and
left rails are being pulled in as .inc files using require.
I would like to have the main content well (all contained within a single
TD tag) load content depending on the the link the user has selected. I am
hoping this can be done using if-elseif-else statements,...
"if the user clicks on about link,
print about.inc,
elseif the user clicks on catalog link,
print catalog.inc,
else load foo.inc"
but I am not sure if this is possible, or how to do it even if it was.
Please ask me to clarify if this isn't a decent explanation. Tutorials,
brief explanations...all help accepted.
Thanks in advance,
Quinn
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: À̺´¿: "[PHP3] PHP°ü·Ã ÀÚ·áÈñ¸"
- Previous message: Margie Wiers: "Re: [PHP3] php retains old info"
- In reply to: .:..:..:...Modest 013.::...:..:..:: "[PHP3] too complicated for a newbie?"
- Next in thread: Jason Brooke: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

