473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Server-side enumeration of form object names and values?

Is there a way (and can you give me a very brief example or point me to one)
to go through all the form objects sent by a PUT to determine what the form
object names were and the values sent?

I need to do this with VBScript on a "classic" ASP application.

Request.Form doesn't seem to do it. While I can tell how many objects were
sent (Request.Form.Count) and what the value of each object is
(Request.Form(I).Item or simply Request.Form(I)) to some degree, I can't
seem to nail down the object name.

Also, I noticed that a <button> field with an embedded <img> returns the
image when queried by Request.Form(I).Item.

Any help here would be appreciated. Just a shove in the right direction
would do the trick, I think.
Oct 2 '05 #1
4 1643
http://aspfaq.com/show.asp?id=2111

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MyndPhlyp" <no****@homeright.now> wrote in message
news:OY*************@TK2MSFTNGP11.phx.gbl...
Is there a way (and can you give me a very brief example or point me to one) to go through all the form objects sent by a PUT to determine what the form object names were and the values sent?

I need to do this with VBScript on a "classic" ASP application.

Request.Form doesn't seem to do it. While I can tell how many objects were
sent (Request.Form.Count) and what the value of each object is
(Request.Form(I).Item or simply Request.Form(I)) to some degree, I can't
seem to nail down the object name.

Also, I noticed that a <button> field with an embedded <img> returns the
image when queried by Request.Form(I).Item.

Any help here would be appreciated. Just a shove in the right direction
would do the trick, I think.

Oct 2 '05 #2

"Steven Burn" <so*******@in-time.invalid> wrote in message
news:OK**************@TK2MSFTNGP10.phx.gbl...
http://aspfaq.com/show.asp?id=2111


Thanks, but I don't see the answer. The REQUEST_METHOD is only going to tell
me if the method is POST or GET and the rest of the page goes on to
illustrate why one should use Request.Form() rather than a simple Request().

My problem is that the form is built on-the-fly (based on records found in a
database) with an unknown number of objects. The data set is not huge. No
anchors; just a couple of <button>'s on each row.
Oct 2 '05 #3
For Each i In Request.Form
Response.Write i & " = " & Request.Form(i) & "<br>"
Next

Bob Lehmann

"MyndPhlyp" <no****@homeright.now> wrote in message
news:OU**************@TK2MSFTNGP14.phx.gbl...

"Steven Burn" <so*******@in-time.invalid> wrote in message
news:OK**************@TK2MSFTNGP10.phx.gbl...
http://aspfaq.com/show.asp?id=2111
Thanks, but I don't see the answer. The REQUEST_METHOD is only going to

tell me if the method is POST or GET and the rest of the page goes on to
illustrate why one should use Request.Form() rather than a simple Request().
My problem is that the form is built on-the-fly (based on records found in a database) with an unknown number of objects. The data set is not huge. No
anchors; just a couple of <button>'s on each row.

Oct 2 '05 #4

"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
For Each i In Request.Form
Response.Write i & " = " & Request.Form(i) & "<br>"
Next


Doh!

[Fear not. That repetitive thumping sound you hear is only my head beating
against the desk.]

I just can't seem to remember FOR EACH.

Now, if I can just get around this last wrinkle I'm all set. <button
type="submit"> wants to return only what is between the tags (an <img> in
this case) and the form always returns all <button> <img>'s (plus the value
of a traditional <input type="submit"> if it was the vehicle used). Using an
<input type="image"> is out of the question as it returns the coordinates
within the image clicked. Using a traditional <input type="submit"> is what
I'm trying to avoid.

I just want a pretty graphic to act as a form button that will pass a value
other than coordinates or the image contained within the tags when it is
clicked and I don't want to resort to client-side scripting.

[More beating of the head against the desk.]

I picked the wrong month to give up drinking.
Oct 2 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
10
by: sara | last post by:
Hi All, I was able to connect to MS SQL Server 2005 on my computer but after a while I can not. When I want to connect to it using MS SQL Server Management Studio I got this error: An error...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.