gsb Posted December 25, 2006 Share Posted December 25, 2006 Is it possible that from my server php script, when it detects a db error, to send the error results as a new html page to the browser... instead of to the origin, say '_self' ??Any way via headers or the like?gsb Link to comment https://forums.phpfreaks.com/topic/31838-server-redirect-http-requests-output-to-new-browser-window/ Share on other sites More sharing options...
.josh Posted December 25, 2006 Share Posted December 25, 2006 not entirely sure what you mean there, but if you do this:[code]header("Location: blah.php"); exit;[/code]it will send a redirect to blah.php (and stop any script after it). Link to comment https://forums.phpfreaks.com/topic/31838-server-redirect-http-requests-output-to-new-browser-window/#findComment-147671 Share on other sites More sharing options...
gsb Posted December 26, 2006 Author Share Posted December 26, 2006 Thanks for your quick response Crayon Violent .Sorry I was not more clear.But here is the issue:My page makes a request to, say, load data from the database into a 'frame' and the PHP script called to send the data finds an error.So instant of sending the error data to the 'frame' it returns the error data formatted in HTML back BUT to a new '_blank' browser window.Now I have never heard of such being possible, but wanted to ask some experts.Hopefully that is better detail to help you and others understand my question....and Thank you again, Merry Christmas too! ;)gsb Link to comment https://forums.phpfreaks.com/topic/31838-server-redirect-http-requests-output-to-new-browser-window/#findComment-147733 Share on other sites More sharing options...
gsb Posted December 26, 2006 Author Share Posted December 26, 2006 Hummm...I'm thinking that this is simply not possible.Anyone else have an idea?gsb Link to comment https://forums.phpfreaks.com/topic/31838-server-redirect-http-requests-output-to-new-browser-window/#findComment-148096 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.