|
CodeAve.com - ASP - Server Variables | |||
|
||||
| ASP Form Tester | ||||
|
|
||||
<html> <title>CodeAve.com(ASP Form Tester)</title> <body bgcolor="#FFFFFF"> <% ' Check to see if any querystring varibles exist if len (request.servervariables("query_string")) >1 then %> <b>Variables passed via QueryString</b><br> <!-- The following was passed via a form with a method equal to get, a hyperlink, or a form action with written varibles --> <% 'Loop to find each querystring variable name and varible value for each variable_name in request.querystring variable_value=request.querystring(variable_name) 'If there is a querystring variable name and value inputted then write it also response.write variable_name &" = " response.write variable_value &"<br>" &chr(13) next ' end for next loop for all querystrings end if ' end check for querstring values ' Check to see if any form varibles exist if len(request.form) > 0 then %> <p> <b>Variables passed via Post</b><br> <!-- The following was passed via a form with a method equal to post --> <% '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>" &chr(13) next ' end for next loop for all end if ' end check for form values %> </body> </html>
|
||||
|
|
||||