Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
baton1 is on a distinguished road
 
Posts: 2
Join Date: Oct 2008
Default Changing menu into php - 10-30-2008, 07:22 PM

I have some site (just as trial for now) at http://probowanie.net76.net/ and there is menu on the left side. I have been trying to make sth like that:
the main site is just like this, what is now, but after click on any position in menu it will be send to the "page.php" which would have this
Code:
<?php include($_GET); ?>
instead the text.
Of course there will be another file which would contain the proper text.
I don't know what I should use... form before menu? and how tell the get funktion what exact tekst should be send (it have to be the page name)...
I just want to do all of this without any graphic changes in menu.
Reply With Quote
(#2 (permalink))
Old
rhuan.barreto's Avatar
Junior Member
rhuan.barreto is on a distinguished road
 
Posts: 11
Join Date: Jul 2008
Location: Brazil
Send a message via MSN to rhuan.barreto
Default 10-31-2008, 10:11 PM

your question is confusing....

if you want to change the content of the site without changing the page you could use an <iframe>

i.e.:
in menu:

<dd><a href="prod.php" target=frame>Oficjalnie</a></dd>

in iframe:

<iframe name=frame width=100%></iframe>

you could use also an include in the main place of the table

i.e:
menu:

<dd><a href="?a=prod.php">Oficjalnie</a></dd>

table:

<td class="main">
<?php
if (isset($_GET['a'])) {
include($_GET['a']);
} else {
include(index.php);
}
?>
</td>

tnx


-----------
Rhuan Samary Barreto
Webmaster
rhuan@tatuinofarol.com.br
www.tatuinofarol.com.br
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com