For example, use your Web browser's source viewing feature to examine how HTML forms are created on other Web sites.Also, visit the Microsoft MSDN Online Web site to learn innovative ways of using HTML forms with other Internet technologies.
We are also going to implement some basic security feature like sanitization and validation of the user's input so that user can not insert potentially harmful data that compromise the website security or might break the application.
By using the ASP Request Object object, you can create simple, yet powerful scripts for collecting and processing data gathered with HTML forms.
The following script illustrates the correct way to assign variables with JScript: VBScript exhibits the same behavior if the collection contains multiple values that are comma-separated or indexable.
This means that for both VBScript and JScript, in addition to placing a pair of empty parentheses following the Request collection item, you will need to specify the index of the desired value.
Another method is to write a short function that tests form input for invalid characters. In this lesson, you create an HTML page that accepts user input in an HTML form and sends the user input back to the Web server to the same page. Later in this module, you use this knowledge about forms to build a guest book application that uses ASP scripting.