MemphiS Posted June 8, 2007 Share Posted June 8, 2007 Ive never atempted or looked into using php to open a new page so i have no clue. I was wondering if anyone does know of a way of opening a new page with php? I wish to open up a new window when the user logins Also if your able to send $_POST data as well Thanks for your replys Quote Link to comment https://forums.phpfreaks.com/topic/54730-solved-open-new-url-with-php/ Share on other sites More sharing options...
beaux1 Posted June 8, 2007 Share Posted June 8, 2007 header("Location:http://www.yoursite.com/yourpage.php"); Should work fine. Edit: Or are you talking about opening a whole new browser window? Quote Link to comment https://forums.phpfreaks.com/topic/54730-solved-open-new-url-with-php/#findComment-270689 Share on other sites More sharing options...
MemphiS Posted June 8, 2007 Author Share Posted June 8, 2007 header(); Only directs the current page to a new location i would like a new window opened using php, i know could simple use javascript for this but i am wondering if php has a function for this Thanks for your reply anyway. Quote Link to comment https://forums.phpfreaks.com/topic/54730-solved-open-new-url-with-php/#findComment-270692 Share on other sites More sharing options...
ToonMariner Posted June 8, 2007 Share Posted June 8, 2007 new windows are something that are requested client side. Since php is over and done before the client renders any html it will take no further part until another request is made to the server. A new window is considered a document effect on the client side so you either use javascript or target="_blank" if you still do oldskool non-standards compliant html. Quote Link to comment https://forums.phpfreaks.com/topic/54730-solved-open-new-url-with-php/#findComment-270708 Share on other sites More sharing options...
MemphiS Posted June 8, 2007 Author Share Posted June 8, 2007 Thanks ToonMariner Quote Link to comment https://forums.phpfreaks.com/topic/54730-solved-open-new-url-with-php/#findComment-270714 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.