Loading The Request Into Our ASPFormV1 Object

We are going to load the information from the previous form into our object, to do so we need to create an instance of our object load the element configuration from the session, then retrieve the data returned from the browser with the LoadFromRequest method.

Example 2.4. Retrieving Data From The Request Object

	'create an ASPForms object
	set hASPForm = Server.CreateObject("ASPForms.ASPFormV1")
	
	'load the previous state of the table from the session
	hASPForm.LoadFromSession "addressInfo"
	
	'create a name element in the form
	hASPForm.LoadFromRequest

The LoadFromRequest method iterates through the list of elements that are defined by the form then attempts to find an named item in the request that matches the element name. if a match is found then the corresponding value is placed into the element value otherwise it is left blank.