Ricky55 Posted December 10, 2012 Author Share Posted December 10, 2012 (You're looking for the modal to remain open and display any errors within the modal without a full page reload, correct? Without that, the modal is completely pointless.) hallelujah, hallelujah!!!!!! Yes thats exactly what I want!!! Like I say I'm not sure if what I'm doing is the best way of tackling this but thats exactly what I want in terms of functionality. I'm not using a database though so could I let this AJAX just pick up from my PHP? For example instead of using header ("Location: login.php?error=1"); Could I not send something that AJAX could pick up and then display the message for me? I just don't know how to do this. Thanks Marcus. Quote Link to comment https://forums.phpfreaks.com/topic/271756-only-showing-a-page-to-logged-in-users/page/2/#findComment-1398589 Share on other sites More sharing options...
Ricky55 Posted December 11, 2012 Author Share Posted December 11, 2012 This is not solved, we are on the right track but I still need some help. I've looked into what Marcus suggested but I still need assistance. Quote Link to comment https://forums.phpfreaks.com/topic/271756-only-showing-a-page-to-logged-in-users/page/2/#findComment-1398709 Share on other sites More sharing options...
Ricky55 Posted December 12, 2012 Author Share Posted December 12, 2012 Finally got this working via Marcus' suggestion so I just wanted to thank everyone for their patience and help. Cheers guys. Ill probably make the code available on my website for anyone who reads this and thinks this is just what they need. Not trying to plug just trying to be helpful. www.qwerty-design.co.uk Quote Link to comment https://forums.phpfreaks.com/topic/271756-only-showing-a-page-to-logged-in-users/page/2/#findComment-1398860 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.