Program:
[Link] <html lang=en> <head> <meta charset="utf-8"> <body> <form action="[Link]" method="post"> <lable>username:<input type="text" name="user1"> </lable><br> <lable>password:<input type="password" name="password"> </lable><br> <input type="submit" name="ok"> </form> </body> </head> </html> [Link] <?php $username=$_POST['user1']; $password=$_POST['password']; if($username=="submit" && $password=="cse") { print("welcome"); print("<html>"); print("<body>");
} else echo "try again"; ?>
Output: