Hi all

I've been working on a very similar problem to this post, but one thing is causing me headaches...

I've got it working so users can login to my website (which uses the punbb functions/database etc) and then return to the page the login was called from.

But if a user doesn't don't login correctly, they get taken to the forum home page with the message "Info  Wrong username and/or password. Forgotten your password?   Go back".

Is there any way I can trap a non-login and return to my page, not the forum one?  And possibly also make my script 'aware' a login has failed so I can display a message to that effect??

Any help/ideas greatly appreciated smile
-Simon