CodeAve.com CodeAve.com - ASP - Miscellaneous
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Each Request.Form
As applications and databases grow and become more complex the more likely you are to be passing large amounts of data via a form or querystring.  This does not necessarily mean that the opening of your asp documents will begin with screen-fulls of variable assignments.  A simple for next loop can import all of you data being passed from one asp to another.   The following example will create ten sequential "hidden" input fields and a submit button.  When entered all of the fields will be imported via the request form created in the for next loop and displayed to the browser. (On the first iteration it will also display some environmental variables too.)
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<title>CodeAve.com(For Next Loop - Each Request.Form)</title>
<body bgcolor="#FFFFFF">
<%
'Loop to find each variable name and varible value
for each variable_name in request.form
variable_value=request.form(variable_name)
'If there is a variable name and value inputted then write it also
response.write variable_name &" "
response.write variable_value &"<br>"
next
%>

<form action="<%= request.servervariables("script_name") %>" method="post">
<% 
'This for next loop will write 10 "hidden" input fields that
'will be retreived and dispalyed on submit 
for counter=1 to 10 %>

<input type="hidden" name="input_<%= counter %>" value="value_<%= counter %>">
<% next %>
<input type="submit" value="Submit">
</form>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3