Adding element to all pages but one


I use this script to add an element into a given page:

if (strpos($uri,'request') !== false ) {
echo 'element'; 

Now I need to include the element to all the pages in the site but one, but I am not able to include an exclusion or get the url not to include it.

I would appreciate some help.


I’m not sure I understand the question, does this not work:

if (strpos($uri, 'request') == false) { 
// do whatever you want if 'request' isn't inside the uri

If not, can you expand with some examples on what values aren’t working, as close to real values as you are comfortable posting.

Solved! Thanks droopsnoot.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.