Moj login.php
<body>
<form id="form1" name="form1" method="post" action="checklogin.php">
<table width="25%" border="0">
<tr>
<td width="14%">login:</td>
<td width="86%"><label>
<input name="login" type="text" id="login" />
</label></td>
</tr>
<tr>
<td>password:</td>
<td><label>
<input name="password" type="password" id="password" />
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="login2" id="login2" value="Loguj" />
</label></td>
</tr>
</table>
</form>
</body>Moj checlogin.php"<?php
session_start();
include ("db_fns.php");
$a = $_POST['email'];
$b = $_POST['password'];
$row = get_user($a,$b);
if($row)
{
$_SESSION['id'] = $row['email'];
$_SESSION['username'] = $row['name'];
header("Location: index.php");
exit;
}
else
{
echo "Nie instaniejesz w naszej bazie";
}
?>


Dodatki SourceMod



Temat jest zamknięty









