AW: help plssssss.!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there!

I would do it this way:

Give the links a variable:

http://www.mywebpage.com/index.php?link=page1

http://www.mywebpage.com/index.php?link=page2

...

http://www.mywebpage.com/index.php?link=page12



and then in the document below your menue:

if (isset($link))
{ 
  include("pages/" . $link . ".php"); //Includes a page called e.g. 'page1'

  						  //in subdirectory 'pages/'
}
else
{
  echo "No Page selected<br>"; //Error if no Page is selected in $link
}

Where the called page is in the directory 'Pages' under the name page1.php

Stefan



> -----Ursprüngliche Nachricht-----
> Von: Tomar Rajeev (ext) [mailto:rajeev.tomar.ext@xxxxxxxxxxx]
> Gesendet: Freitag, 3. Dezember 2004 16:20
> An: 'php-general@xxxxxxxxxxxxx'
> Betreff:  help plssssss.!!!
> 
> 
> Hello All,
> 
> I am a new member of this group and in the world of PHP....;-)
> 
> In my company, around 12 web pages are there. So, I want to make a web
> portal in PHP from where all these web pages can be accessed.
> 
> Also, I want to provide the link for the web pages ( will make three
> categories) in three horizontal dynamic menu.
> 
> If some user clicks on the link then the corresponding web page should be
> shown in the same web page just below the dynamic menu.
> 
> It will be great if you could help me in finding the source code of this
> type of web page in PHP.
> 
> Thanking in Anticipation.
> 
> Regards,
> 
> Rajeev Tomar
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux