php3-list | 200003
Date: 03/29/00
- Next message: Mark Nold: "[PHP3] Re: PHPLIB and 2 databases"
- Previous message: David Dahl: "[PHP3] apache quits with PHP , is fine without"
- In reply to: .:..:..:...Modest 013.::...:..:..:: "[PHP3] too complicated for a newbie?"
- Next in thread: .:..:..:...Modest 013.::...:..:..:: "Re: [PHP3] too complicated for a newbie?"
- Reply: .:..:..:...Modest 013.::...:..:..:: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You can do your links like this: <a href="your.php3?include=yourinclude">
then do something like this to prevent ugly errors if people mess with the
url:
if ($include)
if (!file_exists("path/to/$include"))
print("Invalid option\n");
else
include($include);
}
jason
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: Mark Nold: "[PHP3] Re: PHPLIB and 2 databases"
- Previous message: David Dahl: "[PHP3] apache quits with PHP , is fine without"
- In reply to: .:..:..:...Modest 013.::...:..:..:: "[PHP3] too complicated for a newbie?"
- Next in thread: .:..:..:...Modest 013.::...:..:..:: "Re: [PHP3] too complicated for a newbie?"
- Reply: .:..:..:...Modest 013.::...:..:..:: "Re: [PHP3] too complicated for a newbie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

