CodeAve.com CodeAve.com - ASP - Read/Write
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


 


Request.Form
Passing data between asp documents can be done a number of ways. Request.Form is the method that interprets values that are passed from a <form action method="post" >. Unlike method="get" the url will not contain the variable names or the their values.  This not only helps in preventing bad input from users typing in the address bar, but allows for the transfer of "hidden" values to be passed from page to page.
View the Output
Text View
Print View
Mail this Link
Download the Code

<% 
u_number=request.form("u_number")
' assigns the variable u_number to the value
' that u_value contains in form submitted by the user
u_ip=request.form("u_ip")
' assigns the variable u_ip to the value
' of the users ip address and passes it as
' a hidden value to demonstrate the functionality
%>

<html>
<title>CodeAve.com(Request.Form)</title>
<body bgcolor="#FFFFFF">
<% if u_number <> "" then %>
<p>You entered <%= u_number %><br>
and your IP address (<%= u_ip %>)<br>was submitted as a "hidden" value</p>
<% end if %>
<p>
<form action="<%= request.servervariables("script_name") %>" method="post">
<input type="hidden" name="u_ip" value="<%= request.servervariables("remote_addr") %>">
<select size="1" name="u_number">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input type="submit" value="Submit">
</form>
</p>
</body>
</html>

 

 

 



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