Jump to content
  • 0

pomoc Login


Guest empis

Dotaz

Login

Password

Login?

madeby.jpg

<?php

include "../config.php";

 

 

$log = trim($_POST['jmeno']);

$pass = trim($_POST['heslo']);

 

if($log != $login) return "Zly login!! Nehackuj!!";

if($pass != $password) return "Zle heslo!!Nehackuj!!";

else

{

header("Location: index2.php");

}

 

?>

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
return "text"; máš možná tak v pawnu....

 

změň ty hlášky na:

 

die(" Zlý login! Nehackuj! ");

 

return existuje aj v php ...

a teraz k teme lepsie by som to dak cez elseif takto

 

if($log != $login){
echo "Zly login!! Nehackuj!!";
}elseif($pass != $password)
echo "Zle heslo!!Nehackuj!!";
}else{
header("Location: index2.php");
}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...