#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Help with a redirect to a new page in a new tab


    Right now when I implement this code it redirects my current page to a new page, but what I want it to do is open a new tab with the new page.

    <?php

    /* Redirect browser */
    header("Location: (new page)");

    exit;
    ?>
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,295
    Rep Power
    9400
    Give people a link to click and let them decide if they want to open it in a new tab/window.

    Otherwise AFAIK you can't open a new tab. You can use Javascript's window.open() to open a new window, however.

IMN logo majestic logo threadwatch logo seochat tools logo