Jump to content

estreetfan999

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

estreetfan999's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes. Just did. Thanks so much. That was the answer. ($_SERVER[php_SELF] == 'somepage.php') was actually going to /solutions/somepage.php (that's my file structure) It all works now. Really appreciate the help.
  2. Thanks. I'm using an include file, which has this redirect code in it. <?php require_once('include-test.php'); ?> Placed this include file at the very top of somepage.php I added the quotes around 'PHP_SELF' Still going to second link and ignoring the first link.
  3. Hi, Why doesn't this work? Driving me nuts! Thanks. <?php if($_SERVER[php_SELF] == 'somepage.php') { Header("Location: http://www.thissite.com"); } else { Header("Location: http://www.anothersite.com"); } ?> The code NEVER redirects to the first URL (thissite.com). It ALWAYS redirects to the second URL (anothersite.com). What the heck am I doing wrong?
×
×
  • 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.