TUTORIAL HTML : Using Tcl to Process HTML Forms / PDF







Table of Contents:



1. Introduction :

2. Overview and Tutorial :

2.1. Introduction to HTML Forms 
2.2. Query Processing Overview 
2.3. A Simple Example 
2.4. Protection From Abuse 
2.5. Processing Forms With Shell Scripts

3. The Common Gateway Interface (CGI) :

3.1. The Query 
3.2. CGI Environment Variables 
3.3. Script Output 

4. Using Tcl to Process Forms :

4.1. The Tcl Language 
4.2. Tcl Extensions for CGI 
4.3. A More Complex Example 

5. Tcl Extensions :

5.1. Existing Tcl Extensions 
5.2. Building Tcl Shells 
5.3. Remote Procedure Call -- Distributed Tcl Scripts 

6. Building Large Applications :

6.1. Maintaining State -- In the Query 
6.2. Maintaining State -- In the Server 
6.3. Maintaining State -- In the URL 
6.4. Maintaining State -- At the End of URL
6.5. Maintaining State -- In the HTTP Header 
6.6. Efficiency Concerns 

7. Additional Details :

7.1. Making Relative URLs Work 
7.2. Hardwired Queries 
7.3. The Evil Reload Button 
7.4. Define a Tcl Setup Script 
7.5. Check for and Log Errors 
7.6. Server Security 
7.7. Transaction Security 
7.8. What Client is Asking? 

I. Building HTML Forms 
I.1. The FORM Tag 
I.2. The Submit Button 
I.3. The Reset Button 
I.4. One-Line Text Input 
I.5. Hidden Data 
I.6. Checkboxes 
I.7. Radio Buttons 
I.8. Multi-line Text Input
I.9. Menus and Scrolling Lists 
I.10. Images
---------------------------------------------------

Sample of the pdf document : 

1. Introduction:

The World Wide Web provides easy access to documents stored anywhere on the Internet. Web
browsers, such as Mosaic, give a "point-and-click" interface to these documents. A recent addition
to this interface is the ability to have fill-out forms, which allow users to make complex
queries of a Web server. These forms make it possible to build sophisticated interactive applications,
using Mosaic as a publicly-available user-interface engine.
The Web interface to the Future Fantasy Bookstore is one such application. Using forms, it
allows users to browse the catalog, order books, and send in comments. It is accessible at the
Uniform Resource Locator (URL) http://www.commerce.digital.com/paloalto/
FutureFantasy/home.html. Most of the examples in this report are drawn from our implementation
of the bookstore’s Web "storefront".
If you have access to the Web, you should take some time, now, to look at the bookstore and
experiment with the browsing facilities. Please be aware that this is a real bookstore, and that
any order you place will be treated as a real order. If you just avoid giving your name and
address, you can’t accidentally place an order. .....






                                                Click here for  Download PDF / FREE
                                                                                                     



0 commentaires: