Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 help with FOR and forms....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 08 November 2001 :  16:33:32  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I have the following code, I havnt tested it but I have a feeling its wrong. When you look at it you'll know what Im trying to do. Can someone proofread it please?


For each fld in request.form
response.write("<input type=""hidden"" name=""" & fld.name & """ value=""" & fld.value & """>" & vbcrlf)
Next


---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 08 November 2001 :  17:29:08  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Fixed, thx to 4guysfromrolla.com :)


For Each Item in Request.Form
For iCount = 1 to Request.Form(Item).Count
response.write("<input type=""hidden"" name=""" & Item & """ value=""" & request.form(Item)(iCount) & """>" & vbcrlf)
Next
Next


Also, the following article is VERY VERY helpful if you are dealing with SQL server...

http://support.microsoft.com/support/kb/articles/Q175/2/39.ASP

----------
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 09 November 2001 :  03:48:43  Show Profile
quote:
Also, the following article is VERY VERY helpful if you are dealing with SQL server...

http://support.microsoft.com/support/kb/articles/Q175/2/39.ASP




Interesting bug, thanks for letting us know.

Go to Top of Page

heptite
Average Member

USA
547 Posts

Posted - 09 November 2001 :  06:50:22  Show Profile  Visit heptite's Homepage  Send heptite an ICQ Message  Send heptite a Yahoo! Message
I did it slightly differently:


<%

For Each Item in Request.Form
For iCount = 1 to Request.Form(Item).Count
response.write("<input type='hidden' name='" & Item & "' value='" & request.form(Item)(iCount) & "'>" & vbcrlf)
Next
Next
%>



Using single quotes instead of double.

I had to implement this feature on one of my forms, now I don't have to go looking for it.

Sue

Additional support files - http://www.snitz.info
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 09 November 2001 :  07:12:10  Show Profile  Visit Gremlin's Homepage
Bug ? what bug ... "This behavior is by design..."

Halo of Xegony
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 3.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07