0% found this document useful (0 votes)
57 views2 pages

HTML PHP

The program contains two files: ht1.html which defines an HTML form with fields for a username and password, and submit5.php which processes the form submission. If the submitted username is "submit" and password is "cse", then the user will see a "welcome" message printed. Otherwise, the user will see the message "try again".

Uploaded by

xbslinks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views2 pages

HTML PHP

The program contains two files: ht1.html which defines an HTML form with fields for a username and password, and submit5.php which processes the form submission. If the submitted username is "submit" and password is "cse", then the user will see a "welcome" message printed. Otherwise, the user will see the message "try again".

Uploaded by

xbslinks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Program:

ht1.html <html lang=en> <head> <meta charset="utf-8"> <body> <form action="submit5.php" 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> submit5.php <?php $username=$_POST['user1']; $password=$_POST['password']; if($username=="submit" && $password=="cse") { print("welcome"); print("<html>"); print("<body>");

} else echo "try again"; ?>

Output:

You might also like