Solved

ASP : Request.ServerVariables

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

744 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

10 Experts available now in Live!

Get 1:1 Help Now