EE-WEB Assignment 11

Program 1, 60pts.

Write a CGI script that implements a project log book. This looks to some extend like a Web site guest book but with some significant modifications.

The project log book should accept a few paragraph length text antries and append them to the text already placed on the project log Web page. Each entry should be automatically dated and the IP address of the client computer that was used for the submission should also be listed.

The front-end page with HTML form should use JavaScript to prevent submission of the empty form. CGI script shoudl also refuse to submit empty form in case the JavaScript based verification failed. (old Web browser or scripting disabled.)

The web page with the prtoject log should be kept as a static Web page that is accessible directly without running any CGI. That page is to be modified by the CGI script at the time of each submission. (An easy way to do that was suggested in the lecture. See also hints below.)

Hints: You can either read the existing Web page, insert a new comment, and then copy the new page onto the old one, or otherwise you may store all comments in a separate file, append to that file, and then generate the updated guest book Web page from the scratch using that separate data file.

You may utilize CGI scripts available to public as sharware or freeware by customizing them. If that is the case please mention it in your e-mail and provide the location of the original source code. Exception: you cannot reuse work of the other student of the Web programming class. Customizing someone else's code can be less time consuming, it may be more difficult though.

A "CGI script" phrase is used here. Yes, you may use other languages than PERL. This hoemwork is about CGI technology and not about any particular programming language.

Homework Submission

Attach all source code in files with proper names and extensions (*.html, *.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include compiled files (e.g. *.class). In case of dynamic Web pages (JavaScript or CGI) or Java applets also send the complete URL (including http://) that points to a page on your Web site that demonstrates your homework. Send your homework via e-mail to the instructor. Please set the message subject to: web-hwB.

Thank you.

web site front local main page local list page print this page   general bookmarks software bookmarks go back close this page copyright info   visitor counter