I want to show a text when the contact page is viewed. Just like it's showing below. It works just fine.
My question is how do I add more pages to the script? I want to add about and help pages to it. When I do something like this, it doesn't show the pages. How would you add multiple choices to this script?Code:<?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (false !== strpos($url,'contact')) { echo 'Thank you for checking us out!'; } ?>
Thank you.Code:<?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (false !== strpos($url,'contact' && 'about' && 'help')) { echo 'Thank you for checking us out!'; } ?>



Reply With Quote

Bookmarks