Jump to content

reshpu

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

reshpu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi.... try this code: echo '<br><br><br>Start Test for' .$topic[for_id]'<br>'; echo $topic['for_id']; echo '<br>End Test for' .$topic[for_id]'<br><br><br>';
  2. i have the same problem.... this is my code: $to = $_POST['Email']; $subject = "Welcome"; $body = "<p>Bem Vindo</p> <p>Vimos por este mail informar que a sua activação da conta está completa.</p>"; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); ..... if (mail($to, $subject, $body, $headers)) { echo("<p>Email enviado!</p>"); in my php.ini i change to this way: [mail function] ; For Win32 only. SMTP = smtp.myrealdomain.com smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] plz help me
  3. rsolve: my problem is: $user = $_POST['user']; $senha = $_POST['password']; resolve: $user = $_POST['User']; $senha = $_POST['Password']; sry guys... ;D
  4. ok now all the code form code : <form method="post" action="login.php" style="height: 231px"> <div class="style2"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <strong> <span class="style8">Utilizador: </span><span class="style6"> <input name="User" type="text" class="style6" style="width: 129px; font-family: Arial; color: #000000;" /> <input name="Button1" type="submit" value="Entrar" style="width: 58px; " class="style7" align="middle" /><br /> </span> </strong><span class="style5"><strong><br /> </strong><span class="style3"><strong>Palavra Passe: </strong></span></span> <input name="Password" type="password" class="style6" style="width: 129px" /> <input name="Button2" type="reset" value="Limpar" style="width: 58px; font-family: Arial; color: #FFFFFF; background-color: #000000;" class="style7" /><br /> <br /> <a href="registo.htm" class="style7"> <input name="Button3" type="button" value="Registar" style="font-family: Arial; color: #FFFFFF; background-image: url('iiiiiiiiiiiiiiiiiiiiiiii.JPG');" /></a></div> </form> ok.. plz help me out
  5. the problem is: my varibles dont work well.... so anyone can help me now.. i teste like this: code: <?php session_start(); $con = mysql_connect("localhost","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("registo", $con); $user = $_POST[user]; $senha = $_POST[password]; echo $user; ando dont print anything... plz help me ???
  6. in beggin i have that $user = $_POST['user']; $senha = $_POST['password']; i take off... is the same.... one big problem....
  7. nop.... i do the same sh*** to the register.. and works now the login....
  8. mysql_connet() dont have pass in my computer XD... so the program connect but never do the login....
  9. this is my code: <?php session_start(); $con = mysql_connect("localhost","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("registo", $con); $user = $_POST[user]; $senha = $_POST[password]; $login = mysql_query ("SELECT * FROM person WHERE login='$user' AND password='$senha'") or die(mysql_error()); //Contar numero de registos encontrados no mysql $num_resultados = mysql_num_rows($login); //Se ouver pelo menos 1 resultado, quer dizer q os dados estao correctos if($num_resultados) { header("Location: paginaseguinte.php"); //Isto depois é para usar nas paginas seguintes, para nao se poder ir para essas paginas se n tiver feito o login $_SESSION['autorizado'] = "Sim"; } else { echo "Login Errado</br>"; echo "<a href=login.htm>Voltar ao login</a>"; } ?> is simple but is always give error "login errado"
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.