INDEX
[Link] PROGRAM DATE OF PROGRAM SIGNATURE
/REMARKS
1 Write HTML. program for designing your ins tute
website. Display departmental informa on of your
ins tute on the website.
2 Write HTML program to design an entry form for
student details employee informa on/faculty details
3 Develop a responsive website using CSS and HTML.,
Website may be for tutorial/blogs/commercial
website.
4 Write programs using HTML and Java Script for
valida on of input data
5 Write a program in XML for crea on of DTD, which
specifies set of rules. Create a style sheet in CSS/ XSL
& display the document in internet explorer.
6 Create a Java Bean for Employee informa on
(EmpID, Name, Salary, Designa on and
Department).
7 Command line interface and password generator.
8 Assume four users user 1, user2, user3 and user4
having the passwords pwd1, pwd2, pwd3 and pwd4
respec vely. Write a servlet for doing the following:
1. Create a Cookie and add these four user id's and
passwords to this Cookie, 2, Read the user id and
passwords entered in the Login form and
authen cate with the values available in the cookies.
9 Design and implement a simple shopping cart
example with session tracking API.
10 Write a JSP which insert the details of the 3 or 4
users who register with the web site by using
registra on form Authen cate the user when he
submits the login form using the user name and
password from the database.
Teacher signature……………………………….
WEB TECHNOLOGY LAB
TASK1: . Write HTML. program for designing your ins tute website. Display departmental informa on of your ins tute on the website.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, ini al-scale=1.0">
< tle>Ins tute Website</ tle>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
header {
background: #35424a;
color: #ffffff;
padding: 20px 0;
text-align: center;
nav ul {
list-style: none;
padding: 0;
nav ul li {
display: inline;
margin: 0 15px;
nav ul li a {
color: #ffffff;
text-decora on: none;
font-weight: bold;
main {
padding: 20px;
max-width: 1200px;
margin: auto;
sec on {
margin-bo om: 40px;
h2 {
color: #35424a;
WEB TECHNOLOGY LAB
border-bo om: 2px solid #35424a;
padding-bo om: 10px;
.department-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
.department {
background: #ffffff;
padding: 15px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
footer {
text-align: center;
padding: 20px 0;
background: #35424a;
color: #ffffff;
posi on: rela ve;
bo om: 0;
width: 100%;
@media (max-width: 600px) {
nav ul li {
display: block;
margin: 10px 0;
.department-grid {
grid-template-columns: 1fr; /* Stack departments on small screens */
</style>
</head>
<body>
<header>
<h1>Welcome to Our Ins tute</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#departments">Departments</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact</a></li>
WEB TECHNOLOGY LAB
</ul>
</nav>
</header>
<main>
<sec on id="departments">
<h2>Departments</h2>
<div class="department-grid">
<div class="department">
<h3>[Link]</h3>
<p>Our [Link] program offers a comprehensive educa on in engineering principles and prac ces.</p>
</div>
<div class="department">
<h3>MBA</h3>
<p>The MBA program prepares students for leadership roles in business and management.</p>
</div>
<div class="department">
<h3>[Link]</h3>
<p>The [Link] program focuses on advanced technical skills and research in engineering.</p>
</div>
<div class="department">
<h3>BBA</h3>
<p>The BBA program provides founda onal knowledge in business administra on and management.</p>
</div>
<div class="department">
<h3>[Link]</h3>
<p>The [Link] program offers a strong founda on in scien fic principles and research methodologies.</p>
</div>
<div class="department">
<h3>[Link]</h3>
<p>The [Link] program focuses on commerce, finance, and accoun ng principles.</p>
</div>
</div>
</sec on>
<sec on id="about">
<h2>About Us</h2>
<p>Our ins tute is dedicated to providing quality educa on and fostering research and innova on. We strive to create a suppor ve environment for students to excel
academically and personally.</p>
</sec on>
<sec on id="contact">
<h2>Contact Us</h2>
<p>If you have any ques ons, feel free to reach out to us via email at info@ourins [Link] or call us at (123) 456-7890.</ p>
</sec on>
</main>
<footer>
WEB TECHNOLOGY LAB
<p>© 2024 Our Ins tute. All rights reserved.</p>
</footer>
</body>
</html>
WEB TECHNOLOGY LAB
TASK 2: WRITE HTML PROGRSM TO DESIGN AN ENTRY FORM FOR STUDENT DETAILS/EMPLOYES IMFORMATION/FACULTY DETAILS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, ini al-scale=1.0">
< tle>Entry Form</ tle>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
.container {
max-width: 600px;
margin: auto;
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
h2 {
text-align: center;
label {
display: block;
margin: 10px 0 5px;
input[type="text"],
input[type="email"],
input[type="tel"],
select {
width: 100%;
padding: 10px;
margin-bo om: 15px;
border: 1px solid #ccc;
border-radius: 4px;
input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
WEB TECHNOLOGY LAB
padding: 10px;
cursor: pointer;
border-radius: 4px;
input[type="submit"]:hover {
background-color: #45a049;
</style>
</head>
<body>
<div class="container">
<h2>Entry Form</h2>
<form ac on="#" method="post">
<label for="entryType">Select Entry Type:</label>
<select id="entryType" name="entryType" required>
<op on value="">--Select--</op on>
<op on value="student">Student</op on>
<op on value="employee">Employee</op on>
<op on value="faculty">Faculty</op on>
</select>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" required>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
WEB TECHNOLOGY LAB
WEB TECHNOLOGY LAB
TASK 3: COMMERCIAL WEBSITE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, ini al-scale=1.0">
< tle>My Commercial Website</ tle>
<link rel="stylesheet" href="[Link]">
<style>body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
header {
background-color: #4CAF50;
color: white;
padding: 10px 0;
text-align: center;
nav ul {
list-style-type: none;
padding: 0;
nav ul li {
display: inline;
margin: 0 15px;
nav ul li a {
color: white;
text-decora on: none;
main {
padding: 20px;
sec on {
WEB TECHNOLOGY LAB
margin: 20px 0;
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
posi on: rela ve;
bo om: 0;
width: 100%;
}</style>
</head>
<body>
<header>
<div class="logo">My Commercial Site</div>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<sec on id="home">
<h1>Welcome to Our Commercial Website</h1>
<p>Your one-stop solu on for all your needs.</p>
</sec on>
<sec on id="services">
<h2>Our Services</h2>
<p>We offer a variety of services to cater to your requirements.</p>
</sec on>
<sec on id="about">
<h2>About Us</h2>
<p>Learn more about our company and our mission.</p>
</sec on>
<sec on id="contact">
<h2>Contact Us</h2>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
WEB TECHNOLOGY LAB
<input type="email" id="email" name="email" required>
<input type="submit" value="Submit">
</form>
</sec on>
</main>
<footer>
<p>© 2023 My Commercial Site. All rights reserved.</p>
</footer>
</body>
</html>
WEB TECHNOLOGY LAB
TASK 4 JAVASCRIPT VALIDATION:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, ini al-scale=1.0">
< tle>Document</ tle>
<style>
body{
background-image: url([Link]);
background-size:cover;
align-items: center;
display: flex;
.wrapper h1{
text-align: center;
font-size: 36px;
.wrapper h1:hover{
color: aqua;
.wrapper .input-box{
width: 100%;
height: 50px;
/* background-color; */
padding: 10px;
.wrapper{
color: white;
background-color:transparent;
box-shadow: 0 0 10px rgba(0,0,0, 0.5);
height: 500px;
width: 420px;
margin-le : 500px;
margin-top: 100px;
border-radius: 50px;
padding-top: 20px;
.input-box input{
text-align: center;
font-family: Arial;
color: black;
width: 90%;
WEB TECHNOLOGY LAB
height: 70%;
background-color: transparent;
border: none;
outline: none;
border: 2px solid rgba(255,255,255,.2);
border-radius: 50px;
font-size: large;
.wrapper a{padding-le : 195px;
text-decora on: none;
color: white;
font-size: 12px;
a:hover{
color: pink;
.wrapper .btn{
margin-top: 50px;
width: 300px;
height: 45px;
border-radius: 40px;
outline: none;
font-size: 20px;
cursor: pointer;
background-color: transparent;
border: 2px solid;
margin-le : 50px;}
.Remember{
margin-le : 5px;
.wrapper .create{
padding: 10PX 0 0 112px;
color: black;
</style>
</head>
<body>
<header>
<div class="wrapper">
WEB TECHNOLOGY LAB
<h1>Login</h1>
<div class="input-box">
<input type="email" id="username" placeholder="username" required>
</div>
<div class="input-box">
<input type="password" id="password" placeholder="password" required>
</div>
<div class="Remember">
<label><input type="checkbox">Remember me</label>
<a href="#">Forget Password?</a>
</div>
<bu on type="submit" class="btn" onclick="func()">login</bu on>
<div class="create">CREATE A NEW ACCOUNT</div>
</div>
</header>
<script>
//Submit Bu on
func on func() {
var userRef = "varun@[Link]";
var passRef = "varun@123";
var user = [Link]("username").value;
var pass = [Link]("password").value;
if (user == userRef || pass == passRef) {
alert("succesfully");
[Link] [Link]("fi[Link]");
} else {
alert("It's seem you make a mistake...")
</script>
</body>
</html>
WEB TECHNOLOGY LAB
WEB TECHNOLOGY LAB
TASK 5: . Write a program in XML for crea on of DTD, which specifies set of rules. Create a style sheet in CSS/ XSL & display the document in internet Explorer.
XML FILE:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="[Link]"?>
<books>
<heading>Welcome To GeeksforGeeks </heading>
<book>
< tle>Title -: Web Programming</ tle>
<author>Author -: Chrisbates</author>
<publisher>Publisher -: Wiley</publisher>
<edi on>Edi on -: 3</edi on>
<price> Price -: 300</price>
</book>
<book>
< tle>Title -: Internet world-wide-web</ tle>
<author>Author -: Ditel</author>
<publisher>Publisher -: Pearson</publisher>
<edi on>Edi on -: 3</edi on>
<price>Price -: 400</price>
</book>
<book>
< tle>Title -: Computer Networks</ tle>
<author>Author -: Foruouzan</author>
<publisher>Publisher -: Mc Graw Hill</publisher>
<edi on>Edi on -: 5</edi on>
<price>Price -: 700</price>
</book>
<book>
< tle>Title -: DBMS Concepts</ tle>
<author>Author -: Navath</author>
<publisher>Publisher -: Oxford</publisher>
<edi on>Edi on -: 5</edi on>
<price>Price -: 600</price>
</book>
<book>
< tle>Title -: Linux Programming</ tle>
<author>Author -: Subhitab Das</author>
<publisher>Publisher -: Oxford</publisher>
<edi on>Edi on -: 8</edi on>
<price>Price -: 300</price>
</book>
</books>
WEB TECHNOLOGY LAB
CSS FILE:
books {
color: white;
background-color : gray;
width: 100%;
heading {
color: green;
font-size : 40px;
background-color : powderblue;
heading, tle, author, publisher, edi on, price {
display : block;
tle {
font-size : 25px;
font-weight : bold;
OUTPUT
WEB TECHNOLOGY LAB
TASK6:
: . Create a Java Bean for Employee informa on (EmpID, Name, Salary, Designa on and Department)
1. PROGRAM: Declare the package for the class [Link].
package [Link] ty;
2. Import the following packages required for the Employee class.
import [Link];
import [Link] on;
import [Link];
3. Declare an Employee class. Add a pair of parenthesis ({ }). Place the cursor in between the parenthesis:
public class Employee {}
4. Declare the following variables for each one of the a ributes of an employee.
private int Employee_Id;
private String First_Name;
private String Last_Name;
private String Email;
private String Phone_Number;
private String Job_Id;
private int Salary;
5. Create a constructor for the Employee class which takes ResultSet as the input and throws a SQLExcep on. In this constructor, set all the values for the a ributes of
the Employee class.
public Employee(ResultSet resultSet) throws SQLExcep on {
this.Employee_Id = [Link](1);
this.First_Name = [Link](2);
this.Last_Name = [Link](3);
[Link] = [Link](4);
this.Phone_Number = [Link](5);
this.Job_Id = [Link](6);
[Link] = [Link](7);
6. Create the Ge er and Se er methods, that is, getX and setX methods to get and set the values for all a ributes of the Employee such
as Employee_id, first_name, last_name, salary, and so on. For example, the ge er and se er methods for the Employee is as follows:
public int getEmployee_Id() {
return Employee_Id;
public void setEmployee_Id(int Employee_Id) {
this.Employee_Id = Employee_Id;
}
WEB TECHNOLOGY LAB
TASK7:
COMMAND LINE INTERFACE AND PASSWORD GENRATOR
1. // import required classes and packages
2. package [Link];
3. import [Link];
4. import [Link];
5. import [Link];
6. // create class GeneratePasswordExample1 to generate a random and secure password
7. public class GeneratePasswordExample1 {
8. // main() method start
9. public sta c void main(String args[]) {
10. // call the generatePassword() method to generate a random password using the Passay library
11. String pass = generateSecurePassword();
12. // print Passay generated password
13. [Link]("The Passay generated password is:"+pass);
14. }
15. // create generateSecurePassword() method that find the secure password and returns it to the main() method
16. public sta c String generateSecurePassword() {
17. // create character rule for lower case
18. CharacterRule LCR = new CharacterRule([Link]);
19. // set number of lower case characters
20. [Link](2);
21. // create character rule for upper case
22. CharacterRule UCR = new CharacterRule([Link]);
23. // set number of upper case characters
24. [Link](2);
25. // create character rule for digit
26. CharacterRule DR = new CharacterRule([Link]);
27. // set number of digits
28. [Link](2);
29. // create character rule for lower case
30. CharacterRule SR = new CharacterRule([Link]);
31. // set number of special characters
32. [Link](2);
33. // create instance of the PasswordGenerator class
34. PasswordGenerator passGen = new PasswordGenerator();
35. // call generatePassword() method of PasswordGenerator class to get Passay generated password
36. String password = [Link](8, SR, LCR, UCR, DR);
37. // return Passay generated password to the main() method
38. return password;
39. }}
WEB TECHNOLOGY LAB
WEB TECHNOLOGY LAB
TASK 9:
Design and implement a simple shopping cart example with session tracking API.
FILE A
// Java Program to Illustrate Crea on and last-accessed
// Times for a Session
// Import required java libraries
import [Link].*;
import java.u l.*;
import [Link].*;
import [Link].h p.*;
// Extend H pServlet class
public class GfgSession extends H pServlet {
public void doGet(H pServletRequest request,
H pServletResponse response)
throws ServletExcep on, IOExcep on
// Create a session object if it is already not
// created.
H pSession session = [Link](true);
// Get session crea on me.
Date createTime
= new Date([Link] onTime());
// Get last access me of this web page.
Date lastAccessTime
= new Date([Link]());
String tle = "Welcome Back to geeksforgeeks";
Integer visitCount = new Integer(0);
String visitCountKey = new String("visitCount");
String userIDKey = new String("userID");
String userID = new String("GFG");
// Check if this is new comer on your web page.
if ([Link]()) {
tle = "Welcome to GeeksForGeeks";
[Link] ribute(userIDKey, userID);
else {
visitCount = (Integer)[Link] ribute(
visitCountKey);
visitCount = visitCount + 1;
userID
= (String)[Link] ribute(userIDKey);
}
WEB TECHNOLOGY LAB
[Link] ribute(visitCountKey, visitCount);
// Set response content type
[Link]("text/html");
PrintWriter out = [Link]();
String docType
= "<!doctype html public \"-//w3c//dtd html 4.0 "
+ "transi onal//en\">\n";
[Link](
docType + "<html>\n"
+ "<head>< tle>" + tle + "</ tle></head>\n"
"<body bgcolor = \"#f0f0f0\">\n"
+ "<h1 align = \"center\">" + tle + "</h1>\n"
+ "<h2 align = \"center\">Gfg Session Informa on</h2>\n"
+ "<table border = \"1\" align = \"center\">\n"
"<tr bgcolor = \"#949494\">\n"
+ " <th>Session info</th><th>value</th>"
+ "</tr>\n"
"<tr>\n"
+ " <td>id</td>\n"
+ " <td>" + [Link]() + "</td>"
+ "</tr>\n"
"<tr>\n"
+ " <td>Crea on Time</td>\n"
+ " <td>" + createTime + " </td>"
+ "</tr>\n"
"<tr>\n"
+ " <td>Time of Last Access</td>\n"
+ " <td>" + lastAccessTime + "</td>"
+ "</tr>\n"
"<tr>\n"
+ " <td>User ID</td>\n"
WEB TECHNOLOGY LAB
+ " <td>" + userID + "</td>"
+ "</tr>\n"
"<tr>\n"
+ " <td>Number of visits</td>\n"
+ " <td>" + visitCount + "</td>"
+ "</tr>\n"
+ "</table>\n"
+ "</body>"
+ "</html>");
B FILE:[Link]
<web-app>
<servlet>
<servlet-name>GfgSession</servlet-name>
<servlet-class>GfgSession</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GfgSession</servlet-name>
<url-pa ern>/GfgSession</url-pa ern>
</servlet-mapping>
</web-app>
WEB TECHNOLOGY LAB
OUTPUT
Experiment: -8
Objective:- Assume four users userl, user2, user3 and user4 having the passwords
pwdl. pwd2, pwd3 and pwd4 respectively. Write a servlet for doing the following.
Creale a Cookie and add these four user id's and passwords to this Cookie. 2. Read
the user id and passwords entered in the Login form and authenticate with the values
available in the cookies.
Program for create cookies and authenticate during user id and password enterd
[Link]
<html>
<body>
<form method="POST" action="[Link]">
username:<input type="text" name="uname" id"uname"/><br/>
password:<input type="password" name="pwd" id="pwd"/><br/>
<input type="submit" value="submit">
</form>
</body>
</html>
[Link]
<?php
setcookie("mycookie1 [user 1]", "pwd1",time() +30);
setcookie("mycookie1[user2]","pwd2",time()+ 30):
setcookie("mycookiel[user31" "pwd3", time()+30);
setcookie("mycookie1[user4]""pwd4",time() +30);
$username=$_POST[uname':
$passwd=$_POST['pwd'];
header("location:[Link]?uname =".$username."&pwd=".$passwd);
<html>
<head>
<title>
autheniticationthrrough cookies</title>
</head>
<body>
</body>
</html>
[Link]
7php
Susername=$_GET[uname']:
$passwd=$_GET['pwd'];
$status="no"
if(isset($_cOOKIEmycookie 1'])
foreach($_COOKIE['mycookie1'] as Skey=> $value)
if((Skey ==trim($username)) && ($value==$passwd))
$status="yes";
echo"welcometo".$key:
break:
else
$status="no";
}
echo "<br> <br>cbr><br<br><a href="[Link]'> logout</a
if($status="no")
header("Location :[Link]") ;
[Link]
<?php
echo "user username and or password invalid";
[Link]
<?php
setcookie("mycookie1[user1]","pwd1",time()-30):
setcookie("mycookie1[user2]","pwd2",time()-30):
setcookie("mycookie1[user3]", "pwd3", time()-30);
setcookie("mycookie1[user4]" "pwd4",time()-30):
header("Location:[Link]");:
Experiment: -10
Objective: - Write a JSP which insert the details of the 3 or 4 users who register with the
web site by using registration form. Authenticate the user when he submits the login
form using the user name and password from the database
Program :
[Link]
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Example</title>
</head>
<body>
<form method="post" action="[Link]">
<center>
<table border="1" width="30%" cellpadding="3">
<thead>
<tr>
<th colspan="2">Login Here</th>
</t
ctr>
<td>User Name</td>
<td> <input ty pe="text" name="uname" value="" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="pass" value="" /></td>
</tr>
<tr>
<td><input type="submit" value="Login" /></td>
<td><input type="reset" value="Reset" /></td>
</tr>
<tr>
<td colspan="2">Yet Not Registered!! <a
href="[Link]">Register Here <fa> </td>
</tr>
</tbody>
</table>
enter>
</form>
</body> </html>
<%@page
<DOCYPE htolPtexynmr pageEncoding="UTF-g"
<html>
<head>
<meta http-equiy="Content-Type"
<title> Registration </title> </head>content="text/html; charset=UTF-8">
<body>
<form method="post" action="[Link]">
<center>
<table border="1" width="30%" cellpadding="5">
<thead>
<trs
<th colspan="2">Enter Information Here</th>
</tr>
</thead>
<tbody>
<td>First Name</td>
<td><input type="text" name="fname" value"" |></td>
</tr>
<tr>
<td>Last Name</td>
<td> <input type="text" nane="Inarme" value=""/></td>
</tr>
<trs
<td>Email</td>
<td>
</tr>
<input type="text" name="email" value=" /></td>
ctr>
<td>User Name</td>
<td> <input type="text" name="uname" value=** /></td>
</tr>
<td> Password</td>
eitr
<input type="password" name="pass" value=""I></td>
<tr>
<td> <input type="submit" value="Submit" /></td>
<td><input type="reset" value="Reset" /></td>
</tr>
<tr>
<td colspan="2">Already registered!! <a href="[Link]">Login
Here</la></td>
</tr>
</tbody>
</table>
</center>
</form>
</body>
</html>
[Link]
<%@ page import ="[Link]. " %>
<%
sing user = [Link](" "uname"):
String use
String fname = [Link]("fname");
String Iname = [Link]("Iname");
String email = [Link]("email");
[Link]("[Link]. Driver");
Connection con =
[Link]("jdbc:mysql://localhost:3306/dbname",
"root", "dbpass");
Statement st = [Link]():
I/ResultSet rs:
int i= [Link]("insert into members(first_name, last_name, email,
uname, pass, regdate) values ("" + fname + "," + Iname + "" + email + "m
+ user +",+ pwd + ", CURDATE())"):
if (i > 0) {
l/[Link]("userid", user);
[Link]("[Link]");:
W [Link]("Registration Successfull"+<a href='[Link]'>Go to Login</a>");
else (
[Link]("[Link]");
[Link]
Registration is SuCcessful.
Please Login Here <a href='[Link]'> Go to Login</a>
[Link]
<%@ page import ="[Link]. *" %>
<%
String userid = [Link]("uname");
String pwd = [Link]("pass");
[Link]("[Link]"):
Connection con=
[Link]("jdbc:mysql://ocalhost: 3306/dbname",
"root", "dbpass");
Staten enc sc = [Link]():
rs = [Link]("select * from members where uname=" + userid +
and pass=" + pwd + ""):
if ([Link]()) {
[Link]("userid", userid);
I/[Link]("welcome " + userid);
I/[Link]("<a href='[Link]'>Log out</a>");
[Link]("'[Link]");
} else (
[Link]("Invalid password <a href='[Link]'> try again</a>");
%>
[Link]
if (([Link]("userid") == null) |
([Link]("userid") == *")
You are not logged incbr/>
[Link]"> Please Login</a>
%} else {
Welcome <%=[Link]("userid")9%>
<a href='[Link]'> Log out</a
[Link]
<%
[Link]("userid", null);
[Link]()0:
[Link]("[Link]");