ultrasound0000 Posted August 24, 2009 Share Posted August 24, 2009 I need some ideas/ coding suggestions for what I'm trying to accomplish. Let's say I have a section called "Products" and within this section I have 30 different products. I don't have a DB. To avoid maintaining a page for each product every time I have to update something, I'm using a product "main" page where I include files for the left navigation, or content for the right of the page which changes based on the product category. To include files based on categories I'm passing url variables through the links, which is how my main template knows what page to include. This works fine, but I'm trying to figure out a better structure for including different files based on the product, where I don't have to pass url variables ... any ideas what options I have? Passing url variables might hurt my SEO rankings but also it requires maintaining and updating and many links on this section. Quote Link to comment https://forums.phpfreaks.com/topic/171687-organizing-and-structuring-content-with-php/ Share on other sites More sharing options...
mikesta707 Posted August 24, 2009 Share Posted August 24, 2009 with pure PHP, the only way to pass data from page to page is with cookies, sessions, and post/get variables. if you dont want to use get variables, I would suggest you use sessions, but beyond that you will probably have to find a non-php solution. i guess you could use cookies, but I dont know how useful cookies would be for this Quote Link to comment https://forums.phpfreaks.com/topic/171687-organizing-and-structuring-content-with-php/#findComment-905342 Share on other sites More sharing options...
ultrasound0000 Posted August 24, 2009 Author Share Posted August 24, 2009 Any examples how this can be done with sessions? Quote Link to comment https://forums.phpfreaks.com/topic/171687-organizing-and-structuring-content-with-php/#findComment-905352 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.