Проблема такая, логин написал, как сделать так чтобы зависимость логина была от пароля? Тоесть сейчас могу ввести один логин без пароля и войти, или наоборот.
- Код: Выделить всё • Развернуть
<?
$MyPassword="1234";
$Mylogin="kadet";
$password=(empty($_COOKIE['password']))?(empty($_POST['password']))
?null:$_POST['password']:$_COOKIE['password'];
$login=(empty($_COOKIE['login']))?(empty($_POST['login']))
?null:$_POST['login']:$_COOKIE['login'];
if($password!=$MyPassword)
if($login!=$Mylogin)
echo <<<HTML
<table border=0 align=center>
<form method=post>
<tr><td colspan=2 align=center><b>Aaoi?ecaoey aaieieno?aoi?neie iaiaee.<br><br></b></td></tr>
<tr><td>Eiaei:</td><td><input type=login name=login></tr>
<tr><td>Ia?ieu:</td><td><input type=password name=password></tr>
<tr><td colspan=2 align=center><br><input type=submit value=Aoia></td></tr>
</form>
</table>
HTML;
?>