As the title implies, this tutorial will show you how to get the date and time from the visitor's computer and print them to the web page. You'll learn two basic techniques: How to create what's called a date object and how to extract information from that date object; the hour, minute, month, year, and so forth.
It can be frustrating to design a form so it looks good, then test it on another browser and have the design fall apart. Some browsers calculate the amount of horizontal space taken up by the size and cols attributes differently than other browsers do. That's why the horizontal spacing of name="text" fields and textarea fields can vary from browser to browser. Even the same brand of browser on Mac and on PC can display fields differently.
HTML forms are a means of collecting information. People fill in a form and/or select something. Then they click a button. Forms don't actually process information. For something to be done with the information, it must be sent somewhere. This tutorial is about how to make forms and how to send the information, but not how to process the information after it has been sent off.
Do you have a slow-loading page, one where folks might leave before loading is done? Something that might encourage folks to wait around for your page to load is to provide a transition popup with an explanation. The popup might say "Large image, but worth the wait" or "Retrieving data from remote site" or whatever is applicable. The demonstration (URL below) simply uses the word "Loading" with an animated image of three dots.
This is a tutorial. In future installments, you'll learn how to use Perl to send email containing both plain text and HTML formatted content, and how to send attachments with the email.
Unlike the basic script of Part I, this script uses Perl module "strict" to enforce certain variable naming conventions, which is good programming practice, and to be usable on servers that run mod_perl. (mod_perl is an Apache server module that speeds up Perl programs by a considerable amount. Apache software is used by virtually all Unix/Linux servers.)
Part I contained an introduction and a working Perl script for sending email. Part II showed how to send either plain text or HTML email. This Part III will demonstrate how to send both plain text and HTML formats into one email.