web lab record
TRANSCRIPT
Web ProgrammingProgram 1: Develop and demonstrate a XHTML document that illustrates the useexternal style sheet, ordered list, table, borders, padding, colour, and the tag.
prog1.html Program 1 Name: Sandeep
Phone: 8971474414
Email: [email protected] Favourite Website:Google Educational
Qualification Course Board Percentage X SSLC 56.83% XII PUC 68.83%
B.E VTU 72.67% Technical Skills C C++ Java About Me
T John Institute of Technology, Dept. of ISE, 2011-12
Page 1
Web Programming I am a self motivated person who believes in team work. An enthusiastic person. Accomplishes any task assigned with top priority. Always willing to learn something new.
lab1.css@CHARSET "ISO-8859-1"; body { background-color:pink; } .title { font-size:14; font-family:bookman old style; color:black; } .mine { font-size:14; font-family:monotype corsivo; color:blue; } .spanstyle { font-size:36; font-family:antiqua; color:red; } .one { margin:1in; padding:0.5in; background-color:green; border:dashed; }
T John Institute of Technology, Dept. of ISE, 2011-12
Page 2
Web ProgrammingOUTPUT:Name: Sandeep Phone: 8971474414 Email: [email protected] Website: LinkedIn
Educational Qualification
Course
Board
Percentage
X
SSLC
89.92%
XII
PUC
68.83%
B.E
VTU
60.48%
Technical Skills1. 2. 3. 4. C C++ Java C#
About Me
An enthusiastic person. Accomplishes any task assigned with top priority. Always willing to learn something new.I am a self motivated person who believes in team work.
T John Institute of Technology, Dept. of ISE, 2011-12
Page 3
Web ProgrammingProgram 2a: Develop and demonstrate a XHTML file that includes Javascriptscript for the following problems: Input: A number n obtained using prompt. Output: The first n Fibonacci Numbers.
prog2a.html Program 2a var number=prompt("Enter a number",""); var f1=0; var f2=1; document.write("Fibonacci Series"+f1+" "+f2); var i,f3; for(i=2;iconnect($databaseName,"root","")||die("connect failed!\n"); $stmt="insert into branch values('$usn','$name','$age');"; $sth=$dbh->prepare($stmt)||die("sql prepare failed!\n"); $sth->execute||die("insertion failed\n"); print"record insertion successfull"; print""; print" USN Name Age"; $sh=$dbh->prepare("select * from branch"); $sh->execute(); while(($usn,$name,$age)=$sh->fetchrow()) { print"$usn$name$age"; } print""
T John Institute of Technology, Dept. of ISE, 2011-12
Page 38
Web ProgrammingOUTPUT:
T John Institute of Technology, Dept. of ISE, 2011-12
Page 39
Web ProgrammingProgram 11: Write a PHP program to store current date-time in a COOKIE anddisplay the Last visited on date-time on the web page upon reopening of the same page. prog11.php
T John Institute of Technology, Dept. of ISE, 2011-12
Page 40
Web ProgrammingOUTPUT:
T John Institute of Technology, Dept. of ISE, 2011-12
Page 41
Web ProgrammingProgram 12: Write a PHP program to store page views count in SESSION, toincrement the count on each refresh, and to show the count on web page.
prog12.php
T John Institute of Technology, Dept. of ISE, 2011-12
Page 42
Web ProgrammingOUTPUT:
T John Institute of Technology, Dept. of ISE, 2011-12
Page 43
Web ProgrammingProgram 13: Create a XHTML form with Name, Address Line 1, Address Line 2,and E-mail text fields. On submitting, store the values in MySQL table. Retrieve and display the data based on Name.
13.html Program 13 Enter name:
Enter address1:
Enter address2:
Enter email:
13insert.php