yakult Posted May 23, 2012 Share Posted May 23, 2012 PEGAR REGISTROS PARA COLOCAR VÁRIAS SESÕES!!! UMA DAS TABELAS PRCISA DE MAIS INFO QUE A SEGUNDA, BAIXEI A CONSULTA PARA UTILIZAR OS CAMPOS QUE TÊM O NOME DO CORRTOR!!! $sql = ("select b.nome_corretor as nome from corretores as a LEFT JOIN imoveis as b ON b.nome = a.nome"); $resultado = mysql_query($sql); while ($dados=mysql_fetch_array($resultado)) { $logo = $dados['logo']; $pass = $dados['senha']; O RESULTADO DO FORMUlÁRIO ABAIXO:<?include ("conn.php");session_start()if(IsSet($_SESSION['pass'])) { echo "<div id=\"login\">"; echo "LOGADO"; echo "</div>";else { echo "<div id=\"mensagens\">"; echo "<form action=\"login_do.php\" method=\"POST\">"; echo "<form id=\"login\" value=\"LOGIN\" method=\"POST\">"; echo "<input type=\"text\" name=\"login\" value=\"ADMIN\">"; echo "<input type=\"submit\">"; echo "</form>";}?> Link to comment Share on other sites More sharing options...
birbal Posted May 23, 2012 Share Posted May 23, 2012 can you use english please? Link to comment Share on other sites More sharing options...
Guest So Called Posted May 23, 2012 Share Posted May 23, 2012 I can't read it either. Maybe we can guess from the code. echo "<div id=\"mensagens\">";echo "<form action=\"login_do.php\" method=\"POST\">";echo "<form id=\"login\" value=\"LOGIN\" method=\"POST\">";echo "<input type=\"text\" name=\"login\" value=\"ADMIN\">";echo "<input type=\"submit\">";echo "</form>"; Two <FORM> tags, only one </FORM> tag. Bad!!! Good: <form>.[i]input elements[/i].</form> One <FORM> tag and only one </FORM> tag. Good!!! Link to comment Share on other sites More sharing options...
yakult Posted May 24, 2012 Author Share Posted May 24, 2012 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 "<a href=\"#\" onclick=\"abrirPag('conteudo.php');\">Busca</a>"; echo "</div>"; MOSTRA NA HORA QU PRECISAR DE USUÁRIO, OCULTA SE CARREGA SEM USER!!! 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