2814Self Submitting Formshttp://www.aspalliance.com/stevesmith/articles/selfsubmittutorial.aspA 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.ASP > Tips and Tutorials > Form ProcessingOct 10, 2006
Learn to collect info from forms and validate them with VBScript serverside. All code is available. View the demo to see the result.
Intro:
I can't even count how many form validation scripts I have made. This is something that you just have to know to be an ASP developer. I'll show you have you can collect info with a form, and how to validate it.
Sending e-mail from a web page can be useful for a number of reasons. It doesnt reveal your email address for one, plus it means you can get the information that you want from users and all of this without the end user having to use an e-mail client, nor have an e-mail account or SMTP server to send through.
Great message. The ASP limit for FORM data processing (Request.Form) is about 100kB (sometimes 80k, sometimes 105k or similar). You will get the message above if you try to post more data to an ASP page. Grr....
MS says that The size limit of each form field is exactly 102,399 bytes
The 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".
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.
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.