Hi Lee,

I'm not quite sure what you mean, but to include other files into a PHP
script, you use the include("file.html"); function.

So, if you have a page called news.html and you want to include it into a
PHP page called display.php, you would use some code like this:

<?php
// this is display.php

if ( $page == "news" ) {
        include("news.html");
}

?>

And the link to the page would look like this: display.php?page=news

Hope this helps,

- Jefferrs

* e-mail: [EMAIL PROTECTED]
* homepage: http://webmastersdog.com
______________________________________
worlds' best webhosting:
http://www.openhosting.co.uk/default.asp?r=GB1500175
read the reviews:
http://www.findsp.com/Hosting/ShowReviews.asp?CompanyID=286





"Fishcake" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey,
>
> I've just started learning php and I need to know this...  What are the
> commands I use to get i.e.  index.php?links   and  index.php?news    to
> work?
> I have a site, with the menu down one side, and I need to have the ?news
> page as an include for news.html(or php), etc. etc.   I hope this makes
> sense to someone, I think it does to me?!?!?
>
> Lee...
>
>



-- 
PHP Windows 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