Practical 10

Task 10.1 Download client side program firstCGITest.html and server side program myFirstCGI.cgi. Follow the instruction in lecture 10 to install the server side program and test the connection with the client side program.


Task 10.2 A webpage can embed server side programs for actions. Download the programs: login.html, response.cgi, login.cgi. Install and run these programs. Explain the code to the tutor by drawing diagrams and/or listing their functional modules. The tutor may also ask questions for your comments.


Task 10.3  Write a CGI script that can read a text file contact.txt and output the data of the file in a table with the title: First Name, Last Name and Email Address.


Task 10.4 We didn't discuss Perl in details due to time limit, but Perl, as claimed, exhibited powerful and easy-to-use features for Web programming. You are strongly advised to read more and practise more on Perl features - its variable usage, subroutine calling, regular expression processing, file/directory accessing, and Perl module mechanics etc.