Completing Construction of a Database Form with HTML
In this conclusion to a thirteen-part series on building database forms with HTML, I will talk about the program that receives the data of the transmitted table at the server. I will show you how to do it using CGI and Perl. Recall that the data is actually HTML Form elements sent from the client’s computer.
Completing Construction of a Database Form with HTML (Page 1 of 6 )
I wrote the code using a personal web server and ActivePerl both running on the Windows operating system, in one computer. You can still use a web site on the Internet. In that case simply change the “http://localhost” that you see in the code below to the address (http://www.yoursite.com) of your web site.
The personal web server I used is called Abyss Web Server XI. You can search for and download this web server and the latest version of ActivePerl from the Internet for free. After that, install the server and activePerl; to save time, allow default settings. Normally, the default web site address of the personal web server is http://localhost (you usually cannot have more than one web site with a personal web server).
I will provide a simplified version of the code I gave you for the shopping web page. With this simplified version it will be easier for you to understand and test things yourself.
There is only one rule in the Transmitted table; this is to simplify things. The code segment shown next shows the start tag of the HTML page and the HEAD element.