Solved

ASP : Request.ServerVariables

Posted on 1998-10-02
5
171 Views
Last Modified: 2013-12-25
Can someone tell me the equivalent of the Request.ServerVariables("QUERY_STRING") with the POST method ?
0
Comment
Question by:netf_ds
  • 2
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1855412
Request.Form("fieldname")
0
 
LVL 28

Expert Comment

by:sybe
ID: 1855413
In fact there is not a real equivalent for that, but you can display the form values by:

Response.write Request.Form

and access each formvalue individually by

Request.Form("fieldname")

If you want them all to be written out, then use this:


<TABLE BORDER=1 WIDTH=100%>

<TR>
      <TH COLSPAN=2> Form Data</TH>
</TR>

<TR>
  <TD><B>Name</B></TD>
  <TD><B>Value</B></TD>
</TR>
  <% For Each name In Request.Form %>
<TR>
  <TD> <%= name %> </TD>
  <TD> <%= Request.Form(name) %> </TD>
</TR>

<% Next %>
</TABLE>



0
 

Author Comment

by:netf_ds
ID: 1855414
Are you sure there is no equivalent ???

I heard about it, but I doesn't find it anymore.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1855415
Sybe is correct about the no equivilance, but you can list all the form variables using this code:

<h3>Form</h3>
<% For Each Key In Request.Form %>
  <% = Key %> = <% = Request.Form(Key) %><BR>
<% Next %>
<hr>
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1855416
Sybe is correct about the no equivilance, but you can list all the form variables using this code:

<h3>Form</h3>
<% For Each Key In Request.Form %>
  <% = Key %> = <% = Request.Form(Key) %><BR>
<% Next %>
<hr>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 100
keyword rich ebay title, description 2 46
Scroll 5 news at a time. 4 33
Check ALL SP in database make sure there are no errors 17 43
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question