View Full Version : checking phpBB status

07-30-2008, 10:59 PM
I'm as rusty as the tin man...

the below needs to be triggered by an onclick within a PHP page's div but I'm not sure it can because the headers already been sent?

return true;
header('Location: http://site.com/board/login.php/');

07-31-2008, 01:46 AM
You can't catch onclicks with PHP at all, because by the time the user can click PHP is done with the page, it has been generated, sent to the user, and loading in their browser. You're looking for JavaScript if you want to do onclicks.

07-31-2008, 02:46 AM
For my purposes, I've got it...a dummy page of links that's always checking for login...then it redirects to the real page of when found.

zoobie has a little shameless behaviour in the future, too :)

07-31-2008, 04:33 AM
um, why are you waiting for a click to check to see if they're logged in? why not just make the page load conditional?

07-31-2008, 04:38 AM
...because I want them to see the page before being forced to join...that's how considerate I am :)
I can also just echo out whatever I want them to see...whether it's a page of blank links or a page with real ones...this way, there is no hidden page

my only question now is, can i echo an included script? :eek: