Welcome Guest, Not a member yet? Register   Sign In
Redirect in new browser windows
#1

[eluser]Unknown[/eluser]
Hi.

I have little problem with redirecting in new windows.

I can use target in form or anchor as popup window, but i need make redirecting my content in new browser after some code checking:
Code:
if ($this->form_validation->run('bills') == FALSE) {
//...
Show form errors in some windows
//..
} else {
redirect("invo/bill_print"); //This I need show in new windows.
}
It is possible?
#2

[eluser]Phil Sturgeon[/eluser]
Not from within PHP. Server-side languages know nothing about the browser nor can they control it in such a way. The most they can do is send headers which is what this redirect function does, but headers can't create new windows/tabs.

You will need to send them to a page with HTML output that uses JavaScript to open the new window.




Theme © iAndrew 2016 - Forum software by © MyBB