Originally posted by Draupnir I have a page with a few frames in it. In one of the frames is a log in box. When the user clicks log in, I want the page to redirect to another page, either the secure section, or back on itself. Everything is working grand except for one problem. Im using a header() to redirect the page on login. With the current system, the new page is opening within the same frame as the login box. The rest of the page is staying the same. So basically, how do I redirect to an entirely new page using a header(), rather than opening that page within a frame?. If it cant be done with header() does anyone know a way to redirect to a new page in a PHP script after doing some validation on a few variables?
Originally posted by Ivan Dunaev it's impossible to do with header() use javascript to reload frames after validation for example in onload event in your login box frame
Originally posted by Ivan Dunaev well, i heard about this stuff, something like that: header('Location: somelocation'); header('Window-target: _target'); but i also heard it doesn't work everywhere. i'm trying not to use frames if it's possible, so can't tell more exact
Originally posted by Webmonkey Am but PHP is server side...it doesn't know frames. It only executes its own page and no's bout nothing else