Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP - Request Object
Message
 
 
To
21/02/2000 12:21:02
Scott Knight
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00334833
Message ID:
00334915
Views:
16
>I tried what you suggested and I can certainly see how it can work. However, request.form returns and awful ugly piece of string with numerous characters encoded into it. I could see this getting very long and hard to code and manage. I may even be way of track in what I am trying to do. I thought I would receive the Request Object in the Ofaxserver.Save method. If the hidden input field FaxKey was empty I would consider it an add else It would be a edit. I would then get the record as an object using scatter name or scatter name blank. I would then update the record object based on what was in the Request object through what I had hoped was a small for next loop something to the effect of :
>
>For x = 1 to ItemsInRequest
>lcItemName = Request.Form.Item(x) ???
>lcItemValue = ???
>
>loRecord.lcItemname = lcItemValue
>next
>
>Send loRecord to the actual table.

I do not know if VFP's "For Each" can iterate through the request collection but if it can you should be able to use:

*Using Form post
FOR EACH x IN Request.Form
lcItemName = x
lcItemValue = Request.form(x)
.....
next

*Using Form Get
FOR EACH x IN Request.QueryString
lcItemName = x
lcItemValue = request.QueryString(x)
.....
next
Michael McLain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform