2795How to process the data submitted from HTML formhttp://www.webcheatsheet.com/asp/process_form_data.phpThe great advantage of ASP is possibility to respond to user queries or data submitted from HTML forms. You can process information gathered by an HTML form and use ASP code to make decisions based off this information to create dynamic web pages. In this tutorial we will show how to create an HTML form and process the data.
Before you can process the information, you need to create an HTML form that will send information to your ASP page. There are two methods for sending data to an ASP form: POST and GET. These two types of sending information are defined in your HTML form element's method attribute. Also, you must specify the location of the ASP page that will process the information.
Below is a simple form that will send the data using the POST method. Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send. Copy and paste this code and save it as "form.html".ASP > Tips and Tutorials > Form ProcessingOct 10, 2006WebCheatSheet
This month's article marks the end of our discussion of ASP Form Handling. Hopefully you have fully understood everything we have done thus far (and if you are new to this series, welcome aboard, check out the first article). In this article, we are going to cover a number of miscellaneous topics related to all the techniques discussed in previous articles. Some of these topics come straight from questions I received via email (thanks readers) and include: handling radio buttons and check boxes, emailing attachments with CDONTS, sending HTML in an email message, and some ways of using the data stored in the registration database we created last month. Let's start on the next page by revisiting Form Handling techniques.
Form validation is the procedure of evaluating the validity of values submitted by a user in a form. The procedure can be carried out on the client side, the server side, or both! What we are focusing on here is the server side validation process.
There are two approaches to form validation, as well as any other subject in web design: One is to prepare a good computer program (code) capable to find the errors of interest, and the other is to prepare a good design layout, to inform the user about the errors. A very common design layout for erroneous submitting is to show the form again, focusing on the trouble-making field of the form, for example by changing it's color to red.
I'm going to show you how to develop a form, asking the user for his/her name, address
Ah, forms. We all love them. And everyone knows how to use them (and if you don't, check out the related links at the end of this article). Well, we're here today to show you how to give your forms a little bit more power. By making your forms self-referencing, you can open up whole new areas of functionality with your web applications.
A very important coding method to understand when developing ASP pages is the page that submits to itself. This technique is very powerful and can drastically reduce the number of files you have to maintain and the number of places in which you need to make changes when maintaining code. The concept is simple. Using forms, set the action value to the URL of the page in which the form resides. Then use ASP code to determine what the current state of the page is, and present the proper output to the user.
Many articles detail how to create "independent" HTML select objects with ASP. However, I have not found a good article about creating "dependent" HMTL select objects with ASP. This article details how to leverage several technologies -- both client- and server-side -- to create dependent HTML select objects with ASP. In this article, I will use the following technologies:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.