Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( isset($_SESSION[$login]) ) {
- <div id="login" class="grid_4">
- <br>
- <center><img src="./img/login.png" width="140" height="40" alt="login"></center><br>
- <form method='POST' action='cadastros.php'>
- echo "<br><br><p id=ca style='color: white' align=center>";
- echo "Seja bem vindo :<br> ". $_SESSION[$login] -> nome . "<br><br>";
- echo "E-Mail: <br>" . $_SESSION[$login] -> email."</p>";
- <a id=li href="http://localhost/meusite/php/editar.php"><h3>EDITAR CONTA</h3><a>
- </form>
- <p class="login"> <a href="HTML/cadastro.html" class="login"> ⇒ Registre-se</a><br>
- </p>
- </div>
- } else {
- <div id="login" class="grid_4">
- <br>
- <center><img src="./img/login.png" width="140" height="40" alt="login"></center><br>
- <form name="login" action="index.php">
- <img src="./img/usuario.png" border="0" width="40" height="30" align="top" alt="usuario">
- <input type="text" name="nome" size="11"><br>
- <img src="./img/senha.png" border="0" width="40" height="30" align="top" alt="senha">
- <input type="password" name="senha" size="11"><br><br>
- <center><input type="submit" value="login"></center>
- </form>
- <p class="login"> <a href="HTML/cadastro.html" class="login"> ⇒ Registre-se</a><br>
- </p>
- </div>
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment