Комментарии:
Where is the source code because it isn't on the website you provided.
Ответитьda best
ОтветитьThanks
<?php
if(isset($_POST['submit']))
{
$user = $_POST['username'];
$pass = $_POST['password'];
if($user == 'admin' && $pass == 'admin')
{
echo 'username and password matched';
}
else
{
echo 'error! please enter correct data';
}
}
?>
<html>
<body>
<form action="" method='post'>
<table align="center">
<tr>
<td>username:</td>
<td><input type="text" name='username' placeholder="enter your username"></td>
</tr>
<tr>
<td>password:</td>
<td><input type="password" name="password" placeholder="enter your password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="submit"></td>
</tr>
</table>
</form>
</body>
</html>
Sir in php , how to show the data in table without using mysql database...sir pls reply share a resource...
ОтветитьHi sup.. can you make if username & password is true, then directing to index.html?
Ответитьthere's no source code
ОтветитьTHANK YOU SO MUCH YOU SAVE MY LIFE
ОтветитьWhen we right click on google chrome or another browser and click on inspect how we can hide if($user="admin" ..) part?
Ответитьnot working
and code is note a found in given website
can we run login page without using the database??
Ответитьat line 17 you have to write name="password" like 13 number line.
Ответитьdude it didn't work for me
ОтветитьWell. If i had txt file called usersandpassword.txt, how I could take those lines "myusername:mypassword" to the login system?
ОтветитьGood video, but it's vulnerable to SQL injection :/
ОтветитьMy Server does not support (or is not configured for) POST method. Error 405 will result on client browser immediately after submit. Will this code work if I use the "GET" Method alternatively?
ОтветитьAnd how to set the "correct data" like USERNAME= teacher PASWORD=124sd7 ?
ОтветитьThank you!! you really saved me
ОтветитьIs this method vulnerable? (like mysql query with sql injection...)
ОтветитьIt doesn’t work
ОтветитьNice! Keep it up!
Ответить