jbooth952 Posted September 15, 2008 Share Posted September 15, 2008 in pure html you open a page in a new window using the "target" parm. You can go directly to a new page using the "header()" function, but how do you use the "header()" function to open a new window? IOW, within a PHP script, how do you open a page in a separate window? Link to comment https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/ Share on other sites More sharing options...
realjumper Posted September 15, 2008 Share Posted September 15, 2008 Opening a new window is a client side operation, not server side. So you'll have to use JavaScript to open the new window Link to comment https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/#findComment-642381 Share on other sites More sharing options...
jbooth952 Posted September 15, 2008 Author Share Posted September 15, 2008 Opening a new window is a client side operation, not server side. So you'll have to use JavaScript to open the new window Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window? Link to comment https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/#findComment-642385 Share on other sites More sharing options...
realjumper Posted September 15, 2008 Share Posted September 15, 2008 Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window? As you have just said, 'header' is 'SENT' to the browser. Opening a new window on the client machine has to be done on the client side Link to comment https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/#findComment-642387 Share on other sites More sharing options...
jbooth952 Posted September 15, 2008 Author Share Posted September 15, 2008 Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window? As you have just said, 'header' is 'SENT' to the browser. Opening a new window on the client machine has to be done on the client side Duh, (slap myself in the head), I get it. Link to comment https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/#findComment-642393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.