Solved

ASP : Request.ServerVariables

Posted on 1998-10-02
5
164 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now