Extract fields names

B

Bob Barrows [MVP]

Mark said:
How do I extact fields names (not values) from the Request object?

Thanks

<%
dim key
for each key in Request.Form 'or QueryString
Response.Write key & " contains """ & Request.Form(key) & "''<br>"
next
%>
 
M

Mark Goldin

Am I missing something but I dont see how that is defferent from fields
values.
 
M

Mark Goldin

My problem is that I am trying to do in Visual Foxpro. Looks like Fox has
different syntax.
Here is code that works for fields values:
loFormVars = Request.Form

FOR EACH lcFormVar in loFormVars

INSERT INTO test values('', Request.Form(lcFormVar).Item())

ENDFOR
 
B

Bob Barrows [MVP]

Mark said:
My problem is that I am trying to do in Visual Foxpro.

?? Why is a database relevant to a question about the ASP Request object?
Looks like Fox
has different syntax.
Here is code that works for fields values:
loFormVars = Request.Form

FOR EACH lcFormVar in loFormVars

INSERT INTO test values('', Request.Form(lcFormVar).Item())

ENDFOR

You might want to post future questions to a foxpro group ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,101
Messages
2,570,637
Members
47,243
Latest member
RustyPalin

Latest Threads

Top