Home
Username:
Password:
Perl Fundamentals Tutorials

CGI / Now you try: CGI




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

That's the end of the chapter on CGI. To finish up, I've set an exercise that you are welcome to try if you like. I've only included one exercise at the end of this chapter, because it's quite a challenge. This is a more complex script than any of the scripts that I've asked you to write before. The task is to create a web log that allows you to save your entries and display them, most recent first. And you may want to create two separate scripts, one to handle saving the entries, one to handle displaying them. But how you do it is completely up to you. I will show you the result of the script that I've written, which of course is included within the rest of the source code in the examples folder on the CD. Now you don't have to follow what I am doing here at all, you don't have to use the same functionality or offer the same options. But this is the basic way in which this particular web log works. And I've offered some options here, I've offered a choice of different kinds of emotions, and the web log is able to take my entries and then store them and turn them back out. And I have used those moods from the select box to control the colors that appear around each of the web log entries. You probably won't be able to create the date and time there, that I have included within the web log. If you want to recreate this functionality, local time is the function that I have used to do that, all one word, and it produces an array with a large variety of different elements, which represent months, years, days of the week and so on. Good luck creating your web log. If you surpass my efforts in the example of the CD, well that's great; if you are not able to create a web log yourself, don't be too disappointed. I'm aware that this is quite a challenge, and it will be probably worth wrestling with the problem for a while, before you decide to have a look at the source code that I have provided and see how I've put it together.

Tutorial Information

Course: Perl Fundamentals
Author: Joshua Mostafa
SKU: 33403
ISBN: 1-9320-7215-2
Release Date: 2002-12-19
Duration: 7.5 hrs / 113 lessons
Work Files: Yes
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available