Jump to content

Only Showing A Page To Logged In Users


Ricky55

Recommended Posts

(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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.