?
Solved

ASP : Request.ServerVariables

Posted on 1998-10-02
5
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…
Suggested Courses

743 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