Jump to content

abcd

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

abcd's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a php script which checks if the visitor has a referer, if there is a referer then the visitor is forwarded to another webpage. If there is no visitor, the php script ends and the html that is on the same script below the php code is displayed to the visitor. Here's an example: <?php if($_SERVER['HTTP_REFERER'] != "") { $random = rand(0, 2); $aff_array = array("http://www.website1.com", "http://website2.com", "http:/website3.com"); header("Location: ".$aff_array[rand(0,2)]); exit(); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> The above script works fine. However, I'm wondering if it is possible to also reverse the script so it works in an opposite manner? So, let's say the visitor has a referer and is forwarded to the next webpage. Is it possible to setup a php script on the next page which will keep the visitor on the same page if they have a referer and if they do not have a referer it will forward them to another webpage? Thanks
  2. I'm not familiar with php at all, somebody created our website: www.cells-for-less.com If you notice on the homepage there is a cell phone logo and it says, "Cells For Less - Our name says it all" I want to change that link to: www.doctorcellphone.com I understand basic html, but I can't find which file has this code.  When I view source it says, [home]1.php and I can find that url that it's linking to. but there isn't a home[1] in our directory there is a home.php which I believe is what it's referring to (I've noticed notepad add [1] to various documents) but when I download it from our ftp server it's a completely different file.  There are so many directories and sub-directories I can't find which one it can be. On a different note, I'd really like to have two different images on the homepage with two different links one for Cells-for-less and one for doctorcellphone.  If you notice it's just one image, with one link going to doctorcellphone no matter where you click.  Originally it was 2 different images, but I can't find the file with the correct code, so I can't add them as two different images and two different links.  Even if I could, I probably wouldn't be able to align them correctly unless if somebody can let me know what the correct code would be.  Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.