Juliette Posted March 15, 2013 Share Posted March 15, 2013 Hi, i'm writing a php script which reads data from file, and then it shoud pass that value (which is actually url) to browser. How can I do that without any href or buttons?I want to call that script, and then specific page should be opend.Cheers Link to comment https://forums.phpfreaks.com/topic/275701-send-url-to-browser/ Share on other sites More sharing options...
Jessica Posted March 15, 2013 Share Posted March 15, 2013 header('Location: URL here'); Link to comment https://forums.phpfreaks.com/topic/275701-send-url-to-browser/#findComment-1418831 Share on other sites More sharing options...
Juliette Posted March 15, 2013 Author Share Posted March 15, 2013 that's working.. tnx one more question.. can I open it in new tab? Link to comment https://forums.phpfreaks.com/topic/275701-send-url-to-browser/#findComment-1418832 Share on other sites More sharing options...
Philip Posted March 15, 2013 Share Posted March 15, 2013 Nope, you'd need some sort of front-end logic to tell it to open in a new window/tab. Link to comment https://forums.phpfreaks.com/topic/275701-send-url-to-browser/#findComment-1418836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.