Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Vancouver, BC
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP: Possible to have it open Firefox Window TABS?

    Is there a way to program php to execute a "load new window TAB" and open a specific URL in that window while not leaving the window you're currently in?

    Basically I have a php script that execute MYSQL inquiries to load information on a page. While it jumps to each row to get the information i'd like for it to open a new windows TAB (Firefox) but still be in the first window as it continues to cycle thru the rows.

    Any examples? thanks very much!

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Nope.
    Wait, you can write your own command line program that may be able to do this for you, but I don't think thats the idea you're having. From a website itself, you cannot do this with php. Since PHP is preprocessed by the server before sent to the browser, all you are doing is sending data to the client. The only way to open a link in a new window is to specify a target for a link - forcing the HTML code to do it for you. It would be up to the browser whether its supposed to open a new page, or a new tab.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •