qwikad.com
03-27-2013, 05:32 PM
I want to show a text when the contact page is viewed. Just like it's showing below. It works just fine.
<?php
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($url,'contact')) {
echo 'Thank you for checking us out!';
}
?>
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?
<?php
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($url,'contact' && 'about' && 'help')) {
echo 'Thank you for checking us out!';
}
?>
Thank you.
<?php
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($url,'contact')) {
echo 'Thank you for checking us out!';
}
?>
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?
<?php
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if (false !== strpos($url,'contact' && 'about' && 'help')) {
echo 'Thank you for checking us out!';
}
?>
Thank you.