Code: Select all
<a href=index.php?x=1>click her</a>Ex.
original= login.php
replaced with index.php?x=1
The problem comes when forms or links that exist on the internal pages are clicked. Some have the PHP_SELF command and once the pages are parsed, if they refer to themselves, they 'break out' of the template. I replaced the php_self and references to the pages themselves with the above code and it worked fine, as long as the links or forms don't have ? in them already.
So, if I have a form action that is like login.php?action=blahblahblah
I can't replace the login.php with index.php?x=1. Does anyone have any ideas on how I can accomplish my goal, which is to have a template page that pulls in other pages in php, and have those pages work within the template?