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 Quote Link to comment Share on other sites More sharing options...
Jessica Posted March 15, 2013 Share Posted March 15, 2013 header('Location: URL here'); Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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.