Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP - Request Object
Message
From
21/02/2000 11:09:14
 
 
To
21/02/2000 10:48:09
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:
00334845
Views:
14
Scott,

>I created a HTML form from a VFP COM server that has numerous input controls (i.e. select,input,radio, etc etc). I have built the "name=" cluase based on the input type and file name (i.e. name=inFaxes_Type, Input control that is the faxes.type field in the database). After adding/editing the info. in the form I want to pass the request object back to the COM server save method. What is the VFP syntax to reference the items without know what the name is. I know the long hand is lorequest.form("inFaxes_Type").item(). In may case the methods are generic and the name cannot be hard coded. I Guess I'm looking for a way to to loop through the items picking out the name and value for each. I may need a way to access the equal of .count and Items.AtEnd() in VFP.

Others may have easier ways of doing this, but you can get a string with *all* of the request info by referring to
request.form
This would return, for example,
firstname=Scott&address=Peachtree+Road&zip=12345
You could then parse this to find out what was submitted.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform