- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
//-----------------------------------------------------------------------------------------------------------------------------------------------------
<table width="200" border="0" align="center">
<form action="authorization.php">
<tr>
<td>Логин</td>
<td><input type="text" name="login"></td>
</tr>
<tr>
<td>Пароль</td>
<td><input type="password" name="pass"></td>
</tr>
<tr>
<td><form action="authorization.php" method=get><input type=submit name="sub" value="Войти"></form>
</tr>
</form>
</table>
//-----------------------------------------------------------------------------------------------------------------------------------------------------
<?
$login=$_REQUEST["login"];
$pass=$_GET['pass'];
if ($login=='' or $pass=='')
{
echo "введены не все данные";
echo "<html><body><a href='index.php'>Назад</a></body></html>";
}
$e='0';
$sql="select pass from persons where login='$login'";
$stmt = OCIParse($conn,$sql);
$mess = @OCIExecute($stmt);
if(!$mess)
{
$error = OCIError($stmt);
echo "Ошибка при выборке данных
(".$error["message"].")";
}
while (OCIFetch($stmt))
{
$e=OCIResult($stmt,"PASS");
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------
echo '<tr><td align=right><center><form action=admin.php method=get><input type=submit value="Администрирование системы"></form></tr>';
//-----------------------------------------------------------------------------------------------------------------------------------------------------
?>