Guest empis Odesláno: 1. Listopad, 2010 Share Odesláno: 1. Listopad, 2010 Login Password Login? <?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 More sharing options...
0 cniry 0 Odesláno: 1. Listopad, 2010 Share Odesláno: 1. Listopad, 2010 return "text"; máš možná tak v pawnu.... změň ty hlášky na: die(" Zlý login! Nehackuj! "); Link to comment Share on other sites More sharing options...
0 pr3d4t0r 0 Odesláno: 2. Listopad, 2010 Share Odesláno: 2. Listopad, 2010 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 More sharing options...
0 Deleted User 295 Odesláno: 2. Listopad, 2010 Share Odesláno: 2. Listopad, 2010 ten return mas potom takto return printf('omglol?!'); Link to comment Share on other sites More sharing options...
Dotaz
Guest empis
<?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
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