aznjay Posted November 16, 2006 Share Posted November 16, 2006 Okay i'm trying to make a website...wheen you click the link the page the is from that link shows up to another table, so your website will be like index.php?=something and I have been trying to figure that out. Can anyone help me? or redirect me to a tutorial...coz' I know it's simple, but so complicated for some reason. Link to comment https://forums.phpfreaks.com/topic/27517-link-problema/ Share on other sites More sharing options...
Seraskier Posted November 16, 2006 Share Posted November 16, 2006 You mean like to where you can type index.php?view=view like that and it would show a new page? To do that you would have:[code]<?phpif($_GET['view'] == 'view'){ echo "Welcome to my second page";}?>[/code]The first "view is what comes after ? and then second one is what comes after =. You can make these views whatever you want it to say, even number, anything. To access this new page you would type in your address bar .../page.php?view=view you can even take this further into adding &=view2 even more after that so just let me know how it comes out. Thanks. Link to comment https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125824 Share on other sites More sharing options...
Caesar Posted November 16, 2006 Share Posted November 16, 2006 index.php?p=puppies [code]<?php if($_GET[p] == 'puppies') { echo"Stray dogs should be beaten to death with clubs"; }?>[/code] Link to comment https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125826 Share on other sites More sharing options...
aznjay Posted November 16, 2006 Author Share Posted November 16, 2006 I thnk that's it, but what I mean is in the navigation bar at the side and the content to the right when a link is click the content's original page change to that link and shows up in the content box. Link to comment https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125831 Share on other sites More sharing options...
aznjay Posted November 16, 2006 Author Share Posted November 16, 2006 [quote author=Caesar link=topic=115257.msg469234#msg469234 date=1163716149]index.php?p=puppies [code]<?php if($_GET[p] == 'puppies') { echo"Stray dogs should be beaten to death with clubs"; }?>[/code][/quote]I know what this code does but what I mean is it it's a seperate file like index.php?=what.php then that file will show up in the layout? Link to comment https://forums.phpfreaks.com/topic/27517-link-problema/#findComment-125833 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.