fareedreg Posted January 19, 2010 Share Posted January 19, 2010 how can we add menu to php file Quote Link to comment Share on other sites More sharing options...
Buddski Posted January 19, 2010 Share Posted January 19, 2010 ... Please be more specific in your questions.. And at least have some code to show us... We dont know what you are doing or how you are trying... Its all in the specifics.. Quote Link to comment Share on other sites More sharing options...
fareedreg Posted January 19, 2010 Author Share Posted January 19, 2010 I would like to add external menu to my php project. COZ if i add menus through HTML in each page then further requirement of added other pages will change all of my previous pages. I want menus to be added externally. Is it possible in php? ... Please be more specific in your questions.. And at least have some code to show us... We dont know what you are doing or how you are trying... Its all in the specifics.. Quote Link to comment Share on other sites More sharing options...
Buddski Posted January 19, 2010 Share Posted January 19, 2010 You can simply create your menu in a document.. Then wherever you want to use it just do. include('menu.php'); Then you only have to change it in one place.. Is that what you mean? Quote Link to comment Share on other sites More sharing options...
4554551n Posted January 19, 2010 Share Posted January 19, 2010 Check this out http://www.tizag.com/phpT/include.php this should help ya... Quote Link to comment 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.