Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-15-2008, 02:44 AM #1
- Join Date
- Aug 2002
- Vancouver, BC
- 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!
05-15-2008, 03:31 AM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
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.
Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');