Advertisement
ASP_Volume2 System Services/ Functions #42015

Request Form Sub

This code will help make your code more common, and provide simpler viewing for the Request.Form collection, by allowing the developer to place the entire Request.Form collection into a single Sub, therefore helping to organize your code a little better. We’ve all seen the type of code where Request.Form’s are done many, many time throughout an ASP. It’s hard to keep track of, right? Well, using this Sub will help you to organize your code, and your form collection.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
<%
Dim strExample1, strExample2, strExample3
Call GetPostedItems(strExample1, strExample2, strExample3)
%>
If you want, here is where you can Response.Write
the variables to view the items in your collection:<br>
<%
	Response.Write "strExample1 = [" & strExample1 & "]<br>"
	Response.Write "strExample2 = [" & strExample2 & "]<br>"
	Response.Write "strExample3 = [" & strExample3 & "]<br>"
Sub GetPostedItems(ByRef strExample1, ByRef strExample2, _
						ByRef strExample3)
	'-- Enter the NAME of the field below.
	strExample1 = Request.Form("Example1")
	strExample2 = Request.Form("Example2")
	strExample3 = Request.Form("Example3")
End Sub
%>
Commenti originali (3)
Recuperato da Wayback Machine