Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Auto-store all request variables

// Puts all request variables into local variables. Never type request.querystring again. Easily modified to work with option explicit.

   1  
   2  <%
   3  	For each item in Request.querystring
   4  		If not len(item) <= 0 Then
   5  			Execute("[" & item & "] = Request(""" & item & """)")
   6  		End If
   7  	Next
   8  
   9  	For each item in Request.form
  10  		If not len(item) <= 0 Then
  11  			Execute("[" & item & "] = Request(""" & item & """)")
  12  		End If
  13  	Next
  14  %>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS