AW: [PHP] help plssssss.!!!
| From: | Stefan | Date: | Fri, 03 Dec 2004 15:42:46 +0000 |
| Subject: | AW: [PHP] help plssssss.!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203427@lists.php.net to get a copy of this message | ||
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@siemens.com]
> Gesendet: Freitag, 3. Dezember 2004 16:20
> An: 'php-general@lists.php.net'
> Betreff: [PHP] 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