WP Record
WP Record
PERUMBAVOOR ERNAKULAM-683549
LABORATORY RECORD
Name…………………………………………………………………………………………
Year…………………………………….…Branch………………………………………….
Class No…………………………………...Reg.no…………………………………………
Certified that this is the bonafide record of work done in the ……………………
…………………………………………………………………………………………….
Laboratory of the SCMS College of Polytechnics, Vaikkara
By,
Sri/Smt……………………………………………..
Place:
Date:
INDEX
2 TIME TABLE 6
3 FORM 8
4 CSS 10
BASIC TAGS
<!doctype.html>
<head>
<title>
SCMS
</title>
</head>
<body text="blue" bgcolor="GREY">
<h1 style="color:white; text-align:center" >
SCMS College Of Polytechnic Perumbavoor
</h1>
<h2>
Genesis
</h2>
<h3>
Dr. G.P.C. Nayar
Chairman, SCMS Group
</h3>
<img src="Nayar.jpg">
</img>
<p>
The year 1976 saw the birth of a luminous star of learning on the educational horizon. The star was to
later blaze a trail across the Indian skies guiding scores of students to scale the heights of success in
their careers, professions and enterprises. Today, the beacon stands firm on massive pillars, having
stamped indelible imprints on the glorious academic traditions of India. This is the story of PRATHAP
FOUNDATION FOR EDUCATION AND TRAINING, the brainchild of the great visionary Dr. G.P.C.
Nayar, who wanted to redefine educational standards in India by shaping it as a window to the
emerging market-driven global economy. Prathap Foundation of Education and Training started its first
academic institution, the School of Communication and Management Studies (SCMS) in 1976, which
in later years earned fame and glory as a top business school. It was rechristened as SCMS COCHIN
SCHOOL OF BUSINESS in the year 2013. The Foundation went on establishing institutions to offer
professional education in engineering, technology, management, hospitality, animation, biotech
research, socio-economic research and other professional areas with the core concept of quality and
excellence in anything it does. Together, these institutions constitute SCMS GROUP OF
EDUCATIONAL INSTITUTIONS
</p>
<p>
The SCMS Group of Educational Institutions decided to start a state-of-theart polytechnic college to
<td>20</td>
<td>11</td>
<td>15</td>
</tr>
<tr>
<th>Total</th>
<td colspan="3" align="right">46</td>
</tr>
</table>
<a href="https://scmsgroup.org/scmspoly/index.php">Reference Link👇</a>
</body>
</html>
OUTPUT
TIME TABLE
<!doctype.html>
<body>
<h2 align="center">Odd Semester Class Time Table for the Academic Year 2022-2023 W.E.F 22-
08-2022</h2>
<table border="1" cellspacing="1" align="center">
<tr>
<th>Day/Period</th>
<th>I</th>
<th>II</th>
<th rowspan="6" align="center">TEA BREAK</th>
<th>III</th>
<th>IV</th>
<th rowspan="6" align="center">LUNCH BREAK</th>
<th>V</th>
<th>VI</th>
<th>VII</th>
</tr>
<tr>
<th>Monday</th>
<td>MP</td>
<td>CC</td>
<td></td>
<td>PMSE</td>
<td>WP LAB</td>
<td></td>
<td colspan="3" align="center">WP LAB</td>
</tr>
<tr>
<th>Tuesday</th>
<td>PMSE</td>
<td>MP</td>
<td></td>
<td>WP</td>
<td>CC</td>
<td></td>
<td colspan="3" align="center">MP LAB</td>
</tr>
Dept. of Computer Engg. 6 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
<tr>
<th>Wednesday</th>
<td>WP</td>
<td>PMSE</td>
<td></td>
<td>MP</td>
<td>MP LAB</td>
<td></td>
<td colspan="3" align="center">P&S</td>
</tr>
<tr>
<th>Thursday</th>
<td>CC</td>
<td>WP</td>
<td colspan="2" align="center">CNE LAB</td>
<td></td>
<td></td>
<td colspan="3" align="center">CNE LAB</td>
</tr>
<tr>
<th>Friday</th>
<td>MP</td>
<td>CC</td>
<td></td>
<td>WP</td>
<td>PMSE</td>
<td></td>
<td colspan="3" align="center">P&S</td>
</tr>
</table>
</body>
</html>
OUTPUT
FORM
<!DOCTYPE html>
<html>
<head>
<title>
FORM
</title>
</head>
<h1 align="center" >APPLICATION FORM</h1>
<body>
<form>NAME :<input type="text" name="name"/>
<br>
<br>
Address :
<br>
<br>
<textarea rows ="5" cols="50"name="description">
Enter address here....
</textarea>
<br>
<br>
Gender
<input type="radio" name="Gender" value="Male">Male
<input type="radio" name="Gender" value="Female">Female
<br>
<br>
District
<select value="dropdown">
<option value=""selected></option>
<option value="Ernakulam">Ernakulam</option>
<option value="Alappuzha"> Alappuzha</option>
<option value="Idukki"> Idukki</option>
<option value="Wayanad">Wayanad</option>
</select>
<br>
<br>
<input type="file" name="fileupload"accept="image/*"/>
<br>
Dept. of Computer Engg. 8 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
<br>
<input type="Submit" name="Submit"value="Submit"/>
<input type="Reset" name="Reset"value="Reset"/>
<input type="Button" name="OK"value="OK"/>
</form>
</body>
</html>
OUTPUT
CSS
<!DOCTYPE html>
<html>
<head>
<style>
h1{color: aqua;}
p.a{color: #000ff0;}
p.b{color: #8f9;}
p.c{color: rgb(45, 147, 155);}
p.d{color: rgb(96%, 96%, 20%);}
</style>
</head>
<body>
<h1>SCMS</h1>
<p class="a">The year 1976 saw the birth of a luminous star of learning on the educational
horizon. The star was to later blaze a trail across the Indian skies guiding scores of students to scale the
heights of success in their careers, professions and enterprises. Today, the beacon stands firm on
massive pillars, having stamped indelible imprints on the glorious academic traditions of India.</p>
<p class="b">This is the story of PRATHAP FOUNDATION FOR EDUCATION AND
TRAINING, the brainchild of the great visionary Dr. G.P.C. Nayar, who wanted to redefine educational
standards in India by shaping it as a window to the emerging market-driven global economy. </p>
<p class="c">Prathap Foundation of Education and Training started its first academic institution,
the School of Communication and Management Studies (SCMS) in 1976, which in later years earned
fame and glory as a top business school.</p>
<p class="d">It was rechristened as SCMS COCHIN SCHOOL OF BUSINESS in the year 2013.
The Foundation went on establishing institutions to offer professional education in engineering,
technology, management, hospitality, animation, biotech research, socio-economic research and other
professional areas with the core concept of quality and excellence in anything it does. Together, these
institutions constitute SCMS GROUP OF EDUCATIONAL INSTITUTIONS</p>
</body>
</html>
OUTPUT
<!doctype html>
<html>
<body>
Enter the First number : <input type="text" id="first"><br><br>
Enter the Second number : <input type="text" id="second"><br><br>
<button onclick="add()">Add</button><br><br>
<button onclick="mul()">Mul</button><br><br>
<button onclick="div()">Div</button><br><br>
<button onclick="sub()">Sub</button><br><br>
The result is :<input type="text" id="answer">
<script>
function add(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a+b;
document.getElementById("answer").value=c;
}
function sub(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a-b;
document.getElementById("answer").value=c;
}
function mul(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a*b;
document.getElementById("answer").value=c;
}
function div(){
var a,b,c;
a=Number(document.getElementById("first").value);
b=Number(document.getElementById("second").value);
c=a/b;
Dept. of Computer Engg. 12 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
document.getElementById("answer").value=c;
}
</script>
</body>
</html>
OUTPUT
<!doctype.html>
<html>
<script>
function validation()
{
var name=document.myform.name.value;
var password=document.myform.password.value;
if(name==""||name==null)
{
alert("Name can't be blank");
document.myform.name.focus();
return false;
}
if(password.length<6)
{
alert("password must be 6 character");
document.myform.name.focus();
return false;
}
else
alert("succefully logged");
}
</script>
<body>
<form name="myform" onsubmit="validation()">
Name: <input type="text" name="name"/>
Password: <input type="password" name="password"/>
<input type="submit" name="register" value="register"/>
</form>
</body>
</html>
OUTPUT
<!doctype.html>
<html>
<head>
<script>
function Validation(){
var a = document.form.phone.value;
if(a=="")
{
alert("please Enter the Contact Number");
document.form.phone.focus();
return false;
}
if(isNaN(a))
{
alert("Enter the valid Mobile Number(Like : 9566137117)");
document.form.phone.focus();
return false;
}
if(a.length==10)
{
alert("YOU HAVE ENTERED A VALID PHONE NUMBER")
}
else
alert("ENTER A VALID PHONE NUMBER");
}
</script>
</head>
<body>
<form name="form" method="post" onsubmit="return Validation()">
<tr>
<td>Mobile No:</td>
<td><input type="text" name="phone"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="sub" value="Submit"></td>
</tr>
Dept. of Computer Engg. 16 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
</form>
</body>
</html>
OUTPUT
<!doctype.html>
<html>
<body>
<form action="" method="post">
<center>
<table border=0>
<tr>
<td>
Principle Amount
</td>
<td>
<input type=text name="t1">
</td>
</tr>
<tr>
<td>
no. of Years
</td>
<td>
<input type=text name="t2">
</td>
</tr>
<tr>
<td>
Rate
</td>
<td>
<input type=text name="t3">
</td>
</tr>
</table>
<br>
<br>
<input type=submit name="s" value="Result">
</center>
<?php
if(isset($_POST['s']))////checking whether the input element is set or not
Dept. of Computer Engg. 18 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
{
$a=$_POST['t1']; //accessing value from 1st text box
$a1=$_POST['t2']; //accessing value from 2nd text field
$a2=$_POST['t3']; //accessing value from 3rd text field
$p=($a*$a2*$a1)/100;
echo "<font size=4><center>Simple Interest is:-".$p."</center>";
}
?>
</body>
</html>
OUTPUT
<!DOCTYPE html>
<head>
<title>Calculate Electricity Bill</title>
</head>
<?php
if (isset($_POST['unit-submit']))
{
$units = $_POST['units'];
if (!empty($units)) {
$result = calculate_bill($units);
$result_str = 'Total amount of ' . $units . ' - ' . $result;
}
}
function calculate_bill($units) {
</form>
<?php echo '<br />' . $result_str; ?>
</div>
</div>
</body>
</html>
OUTPUT
COOKIE CREATION
<!doctype html>
<?php
$cookie_name="user";
$cookie_value="John Doe";
setcookie($cookie_name, $cookie_value, time() +(86400*30),"/");//86400=1day
?>
<html>
<body>
<?php
if(!isset($_COOKIE[$cookie_name])){
echo "Cookie named'".$cookie_name."'is not set!";
}else{
echo "cookie'".$cookie_name."'is set!<br>";
echo "value is:".$_COOKIE[$cookie_name];
}
?>
<p><strong>Note:</strong>You might have to reload the page to see the value of the cookie.</p>
</body>
</html>
OUTPUT
<?php
$servername="localhost";
$username="root";
$password="";
$db="college";
$conn=mysqli_connect($servername,$username,$password,$db);
$txtid=$_POST['eid'];
$txtname=$_POST['ename'];
$txtsalary=$_POST['salary'];
$sql="INSERT INTO emp values('$txtid','$txtname','$txtsalary')";
mysqli_query($conn,$sql);
$sql="select * from emp";
$result=mysqli_query($conn,$sql);
?>
<!DOCTYPE html>
<body>
<center>
<h1>FORM</h1>
<table border=1 align center>
<form name="formcontext" method="post">
Enter ID
<input type="text" name="eid">
<p>Enter Name
<input type="text" name="ename"></p>
<p>Enter Salary
<input type="text" name="salary"></p>
<p>
<input type="submit" name="submit" id="submit" value="submit"></p>
<tr>
<td>ID</td>
<td>Name</td>
<td>Salary</td>
</tr>
<?php
while($row=mysqli_fetch_assoc($result))
{
Dept. of Computer Engg. 23 SCMS College of Polytechnics
WEB PROGRAMMING LAB (5139)
?>
<tr>
<td><?php echo $row['eid']?></td>
<td><?php echo $row['ename']?></td>
<td><?php echo $row['salary']?></td>
</tr>
<?php
}?>
</table>
</form>
</body>
</html>
OUTPUT