[PHP] how to insert html code with PHP

2013-04-11 Thread Rafnews
Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say div id=#submenu.../div (so based on its ID and tagname) and inside it to insert my PHP/HTML code. how can i do that ? thx

Re: [PHP] how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
it to insert my PHP/HTML code. how can i do that ? I am a little confused. If you want to insert the same bit of code in a php file, use the include function. If you need to do same thing across a number of pages, you probably have found a spot to refactor your code. If your talking about inserting