I have a few pages for my login and I would like to display them on the top cornet of my screen. I use to use iframes years ago, but i could of swan divs is the way to do it now. I can do a include ("login.php"); in a div but when you submit it it redirects of success.php when i want it to just refresh the div. any ideas?
PHP include is definitely the way to go now, steer clear of iFrames whenever possible. What is your code for the form submission? Where do you want the form to redirect you when it is submitted? And can you please clarify what you mean by it redirects of success.php?
ok ill try to explain a little more, I have a login script that create a session, what i have is the login form on the main page of my website which when u use it depending on weather or not it logins or or fails it takes you to another page. What i want it to do is bring u back to the current page u where on, and have it display that you are logged in.
Can you set the action of the form to the index page and just handle the login from there? So if not logged in, display form, if logged in display user account?
oh yea i new i had done that before, like this... if (!isset($session)){ <div id="login">sdsds</div> } else{ <div id"logged in">welcome></div> } somthing like that? Also I have just got a wired problem with my meun script ill post it in a new thread but think you can have a look for me?
Yeah man, your on to it. Probably best to start a new thread, you know, keep the Mods happy. Just PM me the link when you start it and I'll have a look.
@op you might want to take at something like WP or Joomla - will probably save you a lot of headaches in the long run...