Its not the writing out im doing. Im saving it in a table against a sesssion
ID.  Its ok now, ive sorted it for the final output with
unescape(replace(theValue, "+", " ")).

Dan

-----Original Message-----
From: Steve Abaffy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 16:21
To: ActiveServerPages
Subject: RE: Form Data


Why not just write a sub? I have a sub called WriteHidden

SUB WriteHidden
        For each item in Request.form
                Response.write "<input type=""hidden"" name=""" & item & """ value=""" 
&
Request.form(Item) & """>"
        Next
END SUB
About the only thing I would advise against is Use the value of the Submit
button for navigation, and there do not want it on any form as a hidden
field so I just add the line

        If UCASE(ITEM) <> "CMDSUBMIT" THEN
                Response.write "<input type=""hidden"" name=""" & item & """ value=""" 
&
Request.form(Item) & """>"
        END IF
and in this way I can omit the submit button value from all my hidden form
data.


-----Original Message-----
From: TomMallard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 10:07 AM
To: ActiveServerPages
Subject: RE: Form Data


Sure, retrieve the values by name...

strFieldName = request.form("fieldName")

tom mallard
seattle

-----Original Message-----
From: Daniel Field [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 7:31 AM
To: ActiveServerPages
Subject: Form Data


I am stored the details passed from a form post in DB for future use.  I get
the form data by using:

formData = request.form

This is so I can store the whole lot in one go.  I then store this in a DB
and then retrieve it later on with the following:

localTemp = split(thisRS.fields(0), "&")
for c = 0 to UBound(localTemp)

        localTemp2 = split(localTemp(c), "=")
        if localTemp2(0) = "uid" then
                generateView = generateView + "<input type=""hidden"" name=""uid""
value=""" & uid & """>"
        else
                generateView = generateView + "<input type=""hidden"" name=""" &
localTemp2(0) & """ value=""" & localTemp2(1) & """>"
        end if
next

This allows me to output the previous form post as hidden items. The problem
I am having is that the request.Form returns the form data in its encoded
form and I am unable to find a easy way to get it un-encoded?

Any ideas?

Dan





_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com

---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com



_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning 
Service - powered by MessageLabs. For further information visit http://www.worldcom.com

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to