BJ,

Thanks for the reply.  Sometimes I want to have text, sometimes I want
to include a file.  Your option has me stuck just including the file all
the time.... Is there a way to have the option of both?

Thanks!
Will

Professional Graphics Artist
Certified Web Designer (BCIP)

Stewart and Company
--
www.stewartandcompany.net
[EMAIL PROTECTED]
--
W: 304.550.2687

Rt. 1 Box 364
Buffalo, WV
25033


-----Original Message-----
From: Bj [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 16, 2004 7:06 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: Calling all PHP gurus

Will, if you just put:

$thing="filename";
include("layout.php");

...then in layout.php you just need to refer to $thing.

For instance I may use the same nav for every page by putting
$thispage="home" on the home page, $thispage="about"...etc immediately
before the include("nav.php"),  then in nav.php I can put:

if ($thispage == "home")
  print ": HOME :";
else
  print ": <a href=home.php>HOME</a> :";

if ($thispage=="about").....


____ . The WDVL Discussion List from WDVL.COM . ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with
the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to