Tuesday, 4 September 2018
Subscribe to:
Post Comments (Atom)
<?php
if (isset($_POST['submit']) && !empty($_POST['username']) && !empty($_POST['password'])){echo "yesu";
$username = $_POST['username'];
$password = md5 ($_POST['password'] . 'ijdb');
print "welcome $username";
/*header ('Location: .');
exit();*/
}
else{
?>
<form action = "" method = "post" autocomplete = "off">
Username: <input type = "text" name = "username" autocomplete = "off"/><p>
Password: <input type = "password" name = "password" autocomplete = "off"/><p>
<input type = "submit" name = "submit" value = "login"/>
<form>
<?php
}
?>
username
and password
<input type="text" name="username">
<input type="text" style="display:none">// like this
<input type="password" style="display:none">// Introducing this line ensures that whenever you load the form the password field is blank
<input type="password" name="password">
It will make the username text field not to show any previously typed words in a drop down. Since there is no attribute like name, id for the input field it wouldn't send any extra parameters also.
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment