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 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'); } 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
Archived
This topic is now archived and is closed to further replies.