Is there any one out there that can help me resolve my Jquery POP-UP problem: The Form will not close after Login.
The JQuery Registration form is on my home page, but will not close after the User have logged in? The Form continues to Pop Up even after the Visitor or User has registered and/or logged in? Coding is very new to me, so if you can please illustrate in a actual diagram below on how to fix this I would be most appreciative.
I have enclosed a Sample of my Script below:
Thanks,
Regards,
Cid
My Registration Form Code:
<?php
//Bof Raj (script for pop up )
//if($_SERVER['REMOTE_ADDR']=='115.240.51.183'){
if(!isset($_COOKIE['user_id']) &&($_COOKIE['user_id']<1)){
Generally you'd want to use sessions instead of cookies for user login. And if reg_form_detail.php is being included, that means your condition is true. So obviously either $_COOKIE['user_id'] is no set, or $_COOKIE['user_id'] is less than 1. My guess is that the script that gives the users their cookies is not being executed.
That piece of code will only be executed if the cookie user_id is not set or is the value of the cookie read is different from 'isLogged' or whatever string you chose.
Thanks for your response!
You said cookies is not being executed. Can you tell me how to correct this problem or via diagram or insert directly into the code I provided?
You stated: After the user is logged in successfully setup a standard cookie value (string not a number e.g. isLogged)
I been getting a successful login. However, how and where do I perform this setup, especially when the pop-up continues even after a successful login?
Can you explain via diagram and the place where I need to incorporate the code. I did incorporate this line of code: if(!isset($_COOKIE['user_id']) || ($_COOKIE['user_id']!='isLogged')){
require('reg_form_detail.php'); that you suggested in with my code, but still not working?
Thanks for your response!
You said cookies is not being executed. Can you tell me how to correct this problem or via diagram or insert directly into the code I provided?
Bookmarks