yakult Posted May 30, 2012 Share Posted May 30, 2012 if(IsSet($_SESSION['pass'])) { echo "<div id=\"login\">"; echo "<a href=\"#\" onclick=\"abrirPag('login.php');\">Login</a>"; echo "<a href=\"#\" onclick=\"abrirPag('imoveis.php');\">Imóveis</a>"; echo "<a href=\"#\" onclick=\"abrirPag('exibe_corretores.php');\">Corretores</a>"; echo "<a href=\"#\" onclick=\"abrirPag('classificados.php');\">Classificados</a>"; echo "<a href=\"#\" onclick=\"abrirPag('serviços.php');\">Serviços</a>"; echo "</div>";else { echo "Não encontramos seu usuário."; } Not have password, login with username!!! Link to comment Share on other sites More sharing options...
niche Posted May 30, 2012 Share Posted May 30, 2012 What's your question? Link to comment Share on other sites More sharing options...
yakult Posted May 31, 2012 Author Share Posted May 31, 2012 What's your question? MADE OTHER LINK WITH USER ONLINE, ELSE SHOW THE LOGIN!!! Link to comment Share on other sites More sharing options...
yakult Posted May 31, 2012 Author Share Posted May 31, 2012 HERE IS AN EXAMPLE!!! <div id="myDiv"><h2>Let AJAX change this text</h2></div><button type="button" onclick="loadXMLDoc()">Change Content</button> Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2012 Share Posted May 31, 2012 I don't get the problem either. You have the code (if/else), you know what you want to output. What exactly are you asking for help with? Link to comment Share on other sites More sharing options...
yakult Posted May 31, 2012 Author Share Posted May 31, 2012 WITH FORM FROM SESSION TO DIVS! Link to comment Share on other sites More sharing options...
yakult Posted May 31, 2012 Author Share Posted May 31, 2012 WITH FORM FROM SESSION TO DIVS!leave string with the same link of current paGE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now