0 Replies - 1403 Views - Last Post: 05 January 2011 - 06:00 AM

#1 JamesRozee  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 11
  • View blog
  • Posts: 26
  • Joined: 01-January 11

Redirect Function

Posted 05 January 2011 - 06:00 AM

Description: Copy and paste the function to a place of your choice. Make sure its included before you call it.
redirectUser( "http://www.google.co.uk" );

This function allows you to redirect a user to a page of choice. It redirects a user via a header redirect and a META redirect if headers are already sent.
'
        . 'window.location.href="' . $url . '";'
        . ''
        . ''; exit;
    }
    else
    {
        header( "Location: {$url}" );
    }
}

?>


Is This A Good Question/Topic? 0
  • +

Page 1 of 1