Can someone please help me. I am trying to make it so that after a user logs in they are redirected to a page that opens in a jquery pop up lightbox window. Is this possible?
I am trying to do it like the following although i am getting loads of syntax errors, i'm still learning php so am probably a long way off, but can someone please show me what i could do?
Thanks.
if (logged_in()) {
redirect_to("dashboard.php" rel=\"shadowbox;height=300;width=500\");
}
If you want to redirect to a page that executes some jquery code you can do it 2 ways:
1- Redirect from the server side (using PHP) to a php file that has all the needed jquery code, automaticaly launch this code using the onload
event of Jquery.
2- Just insert the needed Jquery code to the login page, instead of submiting the form to another PHP (this will cause a page redirection), use a AJAX call to check if the login is OK. If the login is successfull you can then call to the jquery popup function you need.