Ss
Ss
mysql_error()); } mysql_select_db('divs'); $sql = "SELECT * FROM users where uname='$uname' and password='$password'"; $retval = mysql_query( $sql, $conn ); if(mysql_num_rows($retval)>0) { echo "Congradulations!!!Login Successful<br>Welcome '$uname'"; } else echo "Try Again"; ?> //sign.html <html> <body> <form action="signin.php" method="post"> <table> <tr> <td>Username</td> <td><input type="text" name="uname" placeholder="enter username"></td> </tr> <tr> <td>Password</td> <td><input type="password" name="pwd" placeholder="enter password"></td> </tr> <tr> <td><input type="submit" value="Submit"></td> </tr> </table> </form> </body> </html> Output: