February 22, 201214 yr I hope this is the right forum for this problem. I assumed it was since this seems to be the place for Javascript. The basic idea behind what I'd like to do for my site is create a parent page ("parent.php" for this example) that has within it an ajax call to display another page (within a <div id="ajax"></div>). I want to make the page displayed within the div to be one of 2 choices, based on perhaps a php bool variable called "$logged_in". If false, it will display "login.php" and if true, it'll display "profile.php". I think I should be able to figure that out on my own. The part I'm not sure what to do is make it so that "login.php" can trigger an event, like when the user successfully logs in, to change value of $logged_in to true and change the contents of the the div to "profile.php" dynamically. Any help would be greatly appreciated. Thank you.
February 22, 201214 yr By using cookies you can set those params, if your looking for a complete solution, I don't have the time to provide its best start work on one you found then run you actually run into the problems with the code, include the snippet. If you have done this already, please provide the code. Thanks.
Create an account or sign in to comment