December 2001
Intermediate to advanced
480 pages
9h 22m
English
In the role of a confirmation tool, JavaScript can check the content of forms before data is sent to an ASP page. Such a role is important for real-world forms because, if troublesome data are sent to an ASP page, the wrong data could end up in your database.
To see one role of JavaScript in gathering information, these next two scripts, one an HTML page and the other a VBScript script, show how data can originate in JavaScript and be passed to an ASP page.
Two key lines are used to pass data from HTML to ASP in the two scripts. On the HTML side, the <form> tag has two attributes, action and method. The method to pass data is either post or get. With ASP pages, use post. The action is to load the page specified ...
Read now
Unlock full access