Looking through this script you ought to be able to pick out what is happening fairly easily. The first ASP section gets the information from the form and stores this in three variables name, optionSelected, whichButton ; this information is then output to an html page, exactly as was explained in asp training : the basics. So, lets take a closer look at the first three lines then.
As well as being a scripting (programming) language, ASP/VBScript comes with a number of objects to allow you to access information easily and in a consistent manner (we will meet more of these later when we look at the database component).
One of the standard objects provided is the request object; the request object allows you to request information from the browser and the web server. In the case of request.form you are requesting information about the data being passed from the form; you can also use request to access information stored in cookies, the query string and server variables (if all this means nothing to you, don't worry, we will only be thinking about the .form parts of the request object).
To get access to the values being passed by the HTML form, you plug in the name of the HTML form element that you want to get hold of. So in our HTML form, we created a name form element, an exampleSelection form element and a submitButton form element.
It is as simple as that, to get the value of an HTML form element into your ASP script, you just use the request.form object and put the name of the form element into the brackets, so that you end up with
<%
name = request.form("name")
optionSelected = request.form("exampleSelection")
whichButton = request.form("submitButton")
%>
And now we have the variables name, optionSelected and whichButton in our ASP script ready to be used in any way we see fit.
Simple.
As this guide continues you will see more complex manipulation of form elements that just echo'ing them back to the page; but suffice for now that you know how to get hold of the form information and store it in variables for you to use at a later date.