Page 210 - DCAP408_WEB_PROGRAMMING
P. 210

Web Programming                                                         Kumar Vishal,  Lovely Professional University




                    Notes                                Unit 8: ASP Web Forms


                                     CONTENTS
                                     Objectives
                                     Introduction

                                     8.1  Using Form Fields
                                     8.2  Introduction to CGI Forms and CGI
                                     8.3  Understanding Client-Server Scripting

                                          8.3.1  How ASP differs from Client-Side Scripting Technologies?
                                     8.4  Building and Processing Web Forms
                                     8.5  Summary
                                     8.6  Keywords
                                     8.7  Review Questions

                                     8.8  Further Readings

                                   Objectives

                                   After studying this unit, you will be able to:
                                      Scan the introduction to CGI

                                      Describe Client-Server side scripting
                                      Demonstrate building and processing web forms

                                   Introduction

                                   A form has two duties:
                                   1.  To collect information from the user and to send that information to a separate Web page
                                       for processing.
                                   2.  Through the use of form, an ASP page can acquire the user’s input, and make programmatic
                                       decisions based on that input.
                                   Creating form is straightforward and simple. It requires as little as two lines of HTML.
                                   It is created using the <FORM> Tag
                                   1:  <FORM  METHOD=  POST  ACTION=  “somepage.asp”>
                                   2:  </FORM>


                                       !
                                     Caution  The above form is useless and serves no function. It has no text boxes for users to
                                     enter information into. It has no list boxes, radio buttons or check boxes either.
                                   On a website, this form would be useless; however it does demonstrate how a <FORM> tag is
                                   used to collect information from the user.





          204                               LOVELY PROFESSIONAL UNIVERSITY
   205   206   207   208   209   210   211   212   213   214   215