Validating information on the internet

Rated 3.88/5 based on 619 customer reviews

In this example, the Web page listed in the ACTION element is the same as the calling page, which eliminates the need to call another page.

In this example, METHOD=" POST" is used to send data from the Web client's browser to the Web server.

By using the ASP Request Object object, you can create simple, yet powerful scripts for collecting and processing data gathered with HTML forms.

In this topic, you will not only learn how to create basic form processing scripts, but also acquire useful techniques for validating form information, both on your Web server and at the user's browser.

To complete this lesson, you perform the following tasks: Forms can contain many different kinds of elements to help your users enter data.

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.

HTML forms, the most common method for gathering Web-based information, consist of arrangements of special HTML tags that render user interface elements on a Web page.

Text boxes, buttons, and check boxes are examples of elements that enable users to interact with a Web page and submit information to a Web server.

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.

For example, the following line of JScript returns only the first of multiple values for a form element: A common use of intranet and Internet server applications is to accept user input by implementing a form in your Web page.

Leave a Reply