25-05-2012, 04:39 PM
CGI PROGRAMMING LABORATORY
Java-CGI-Lab.doc (Size: 205.5 KB / Downloads: 39)
Develop and execute the following programs using HTML and PERL.
Create Database using MYSQL wherever necessary.
1. a) Program to display various Server information like – Server Name, Server
Software, Server protocol, CGI Version etc .
b) Program to accept UNIX command from a HTML form and to display the output
of the command executed.
2. a) Program to accept the User Name and display a greeting message.
b) Program to keep track of the number of visitors, visited the web page and display.
the counter with proper headings.
3. Program to display a greeting based on the access time of the Web server. Also to verify whether the webmaster is currently logged in.
4. Program display a digital clock which display the current time of the server.
5. Program to display the current contents of the table in a database.
6. Program to insert new name and age information entered by the user into the database.
Develop and execute the following programs using HTML and PHP.
Create Database using MYSQL wherever necessary.
7. Program to query the database and to display the result on a web page.
8. Program to accept book information viz. Accession number, title, authors, edition and publication from a web page and to store those in a database.
9. Program to search a book for a title given by the user on the web page and display the search results with proper headings.
Develop and execute the following programs using
HTML and JAVA Servlets .
10. a) Program to accept user name and display a greeting message.
b) Program to change the background color of the page based on the color selected
by the user.
11. Program to display a greeting based on the access time of the server.
12. Program to create and display a cookie.
13. Program to create a session and display session information viz. session ID, creation
time and last accessed.
14. Program to request server information viz. Request Method, URL, Protocol and
Remote address.
15. Program to accept User name and address and display them in a web page by
passing parameters.