Space for google add

Design a webpage of three columns with given data using cookies.



Design a webpage of three columns with following data

Information for placement Like personal details – in one column,

Educational details – in second column, technical skills-in third column


ex6setb1.html

<html>

<head><titile>PERSONAL DETAILS</title></head>

<body>

<form action="ex6setb1.php" method="post">

Name :<input type="text"name="name" ><br>

Address<input type="text"name="addr"><br>

Age<input type="text"name="age" ><br>

Email<input type="email"name="email" ><br>

<input type="submit"name="submit">

</form>

</body>

</html>



ex6setb1.php

<?php

$name=$_POST['name'];

$addr=$_POST['addr'];

$age=$_POST['age'];

$email=$_POST['email'];

setcookie("name","$name",time()+3660);

setcookie("addr","$addr",time()+3600);

setcookie("age","$age",time()+3600);

setcookie("email","$email",time()+3600);

?>

<html>

<body>

<head><title>Educational Details</title></head>

<form action="ex6setb.php" method="post">

Institute Name:<input type="text"name="in"><br>

Degree:<input type="text"name="degree"><br>

Marks:<input type="text"name="marks"><br>

<input type="submit"name="submit" value="submit">

</form>

</body>

</html>



ex6setb.php

<?php

$iname=$_POST['in'];

$degree=$_POST['degree'];

$marks=$_POST['marks'];

setcookie("iname","$iname",time()+3660);

setcookie("degree","$degree",time()+3600);

setcookie("marks","$marks",time()+3600);

?>


<html>

<body>

<head><title>Technical Skills</title></head>

<form action="ex6.php" method="post">

Project Name:<input type="text"name="pn"><br>

Computer Technology Known:<input type="text"name="cn"><br>

<input type="submit"name="submit" value="submit">

</form>

</body>

</html>



ex6.php

<?php

$pname=$_POST['pn'];

$com=$_POST['cn'];

setcookie("pname","$pname",time()+3660);

setcookie("com","$com",time()+3600);

$Name=$_COOKIE['name'];

$Addr=$_COOKIE['addr'];

$Age=$_COOKIE['age'];

$Email=$_COOKIE['email'];

$Iname=$_COOKIE['iname'];

$Degree=$_COOKIE['degree'];

$Marks=$_COOKIE['marks'];

?>


<html>

<body>

<h3>PERSONAL DETAILS</h3>

<b>NAME:</b><?php echo "$Name"?><br>

<b>Address:</b><?php echo "$Addr"?><br>

<b>Age:</b><?php echo "$Age"?><br>

<b>Email:</b><?php echo "$Email"?><br><hr>


<h3>INSTITUTE DETAILS</h3><br>

<b>Institute Name:</b><?php echo "$Iname"?><br>

<b>Degree:</b><?php echo "$Degree"?><br>

<b>Marks:</b><?php echo "$Marks"?><hr>


<h3>TECHNICAL DETAILS</h3>

<b>Project Name:</b><?php echo "$pname"?><br>

<b>Computer Technology Known :</b><?php echo "$com"?><br>

</body>

</html>


Post a Comment

0 Comments