Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?
$potrebitel=$HTTP_POST_VARS['potrebitel'];
$parola=$HTTP_POST_VARS['parola'];
$user="root";
$password="parola";
$database="phpbb";
mysql_connect(localhost,$user,$password);
mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * from phpbb_users
where username like '$potrebitel' and user_password like md5('$parola') ";
$result=mysql_query($query);
mysql_close();
if (mysql_num_rows($result) >0 )
{
echo "Добър ден ".$potrebitel.".Вие се логнахте успешно";
}
else
{
echo "Грешен user или pass.";
}
?>
<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script type="text/javascript">
</script>
</head>
<body>
<form action="pro.php" name="login" method="post" onsubmit="return validate()">
<input name="login" type="hidden" value="1">
<table width="200" border="0">
<tr>
<td>Потребител</td>
<td><input type="text" name="potrebitel"></td>
</tr>
<tr>
<td>Парола</td>
<td><input type="password" name="parola"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="Влез"></td>
</tr>
</table>
</form>
</body>
</html>