I have to show a page from my php script based on certain conditions. I have an if condition and am doing an \"include\" if the condition is satisfied.
if(co
In the file you include, wrap the html in a function.
In the file where you want it to be included, include the file and then call the function with the parameters you want.