oha055 Posted October 17, 2011 Share Posted October 17, 2011 Hi! I am making a website from scratch to try to learn some basic PHP. Up untill recently I have made separate .php files for each part of my website (index.php, about.php, blog.php etc.) and just linked to these pages in HTML. I know there are better ways of doing this, so that I don't need to make as many separate pages. Something like just using PHP functionality to show different content on the same site, depending on which button is clicked. I don't want you to write any code for me, but if someone could point me in the right direction that would be great! . Any links to tutorials are also very welcome ! regards, Øyvind Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/ Share on other sites More sharing options...
KevinM1 Posted October 17, 2011 Share Posted October 17, 2011 Things to look at/search for: Query strings $_GET[] PHP Page Controller Google should provide you with all you need. Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/#findComment-1279931 Share on other sites More sharing options...
oha055 Posted October 17, 2011 Author Share Posted October 17, 2011 Thank you! Yeah, I'm sure Google has got the answers, but I didn't know what to search for Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/#findComment-1279937 Share on other sites More sharing options...
litebearer Posted October 17, 2011 Share Posted October 17, 2011 some words to use in your searching - sessions, include, conditionals Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/#findComment-1279945 Share on other sites More sharing options...
oha055 Posted October 17, 2011 Author Share Posted October 17, 2011 Thank you! Btw, does anyone know of a good PHP book for learning about this topic? I'm looking at amazon.com and there are so many PHP books to choose from.. Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/#findComment-1279972 Share on other sites More sharing options...
Far Cry Posted October 17, 2011 Share Posted October 17, 2011 Thank you! Btw, does anyone know of a good PHP book for learning about this topic? I'm looking at amazon.com and there are so many PHP books to choose from.. I have a PHP 5 book, and honestly, I hate it. I find it easier to learn by looking around on the Internet, (here more specifically). Books are sometimes hard to understand. That's just me. Quote Link to comment https://forums.phpfreaks.com/topic/249260-page-navigation-with-php/#findComment-1279984 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.