andresb
1
Hi,
I use this script to add an element into a given page:
<?php
$uri = $_SERVER['REQUEST_URI'];
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.
Thanks.
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.
andresb
3
Solved! Thanks droopsnoot.
system
Closed
4
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.