Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Da um look http://forum.imasters.com.br/public/style_emoticons/default/devil.gif
<?php require_once('../Connections/teste.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">@import](http://www.w3.org/1999/xhtml) url("estilo.css");</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body><div class="cabecalho">Mural</div><br><div class="painel">Registro</div><br><div class="mensagem"> <form id="form1" name="form1" method="post" action=""> <table width="100" border="0"> <tr> <td>Login:</td> <td><input name="login" type="text" class="campo" id="login" size="40" maxlength="20" /></td> </tr> <tr> <td>Senha:</td> <td><input name="senha" type="password" class="campo" id="senha" size="40" maxlength="8" /></td> </tr> <tr> <td>Email:</td> <td><input name="email" type="text" class="campo" id="email" size="40" maxlength="40" /> </td> </tr> </table> <label></label> <label></label> <label></label> <br /> <label> <input name="Submit" type="submit" class="campo" value="Enviar" /> </label> <label> <input name="Submit2" type="reset" class="campo" value="Reset" /> </label> </form> <?php if ($_POST) { $email = $_POST['email']; $login = $_POST['login']; $senha = $_POST['senha']; $conn = mysql_connect("localhost","root","vertrigo"); mysql_select_db("gabriel",$conn); $qr = mysql_query("SELECT * FROM user WHERE login = '$login'"); $array = mysql_fetch_array($qr); while ($array) { if (!$array['login'] == "") {echo "Usuario já existente!"; }else {$q = mysql_query("INSERT INTO user (email,login,senha) VALUES ('$email','$login','$senha')");} } } ?> </body></html>
Vlw aeeeeeCarregando comentários...