mdmartiny Posted June 26, 2011 Share Posted June 26, 2011 Hello everyone, I am in the process of creating a website that has two different sidebars depending on what page they go to. Is there a way using PHP that I can have the browser pick which sidebar to use. I have seen many tutorials on wordpress doing this but I am tying to do it without word press Thank You Quote Link to comment https://forums.phpfreaks.com/topic/240438-using-different-sidebars-with-php/ Share on other sites More sharing options...
WebStyles Posted June 26, 2011 Share Posted June 26, 2011 I don't really understand what you're asking... sounds like a simple condition: if($varX=='specialPage'){ include_once('specialSidebar'); }else{ include_once('normalSidebar'); } Quote Link to comment https://forums.phpfreaks.com/topic/240438-using-different-sidebars-with-php/#findComment-1234982 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.