Extract fields names
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Extract fields names




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Extract fields names  
Mark Goldin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 12:19 AM

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

Thanks







[ Post a follow-up to this message ]



    Re: Extract fields names  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 12:19 AM

Mark Goldin wrote:
> 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
%>

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"







[ Post a follow-up to this message ]



    Re: Extract fields names  
Mark Goldin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 12:19 AM

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

"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:e5KDE%23mkHHA.2272@TK2MSFTNGP02.phx.gbl...
> Mark Goldin wrote: 
>
> <%
> dim key
> for each key in Request.Form 'or QueryString
>    Response.Write key & " contains """ & Request.Form(key) & "''<br>"
> next
> %>
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>







[ Post a follow-up to this message ]



    Re: Extract fields names  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 12:19 AM

The key variable contains the field names. Did you run the code?
Mark Goldin wrote:[vbcol=seagreen]
> Am I missing something but I dont see how that is defferent from
> fields values.
>
> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:e5KDE%23mkHHA.2272@TK2MSFTNGP02.phx.gbl... 

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"







[ Post a follow-up to this message ]



    Re: Extract fields names  
Mark Goldin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 12:19 AM

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


"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:OnGTcJnkHHA.208@TK2MSFTNGP05.phx.gbl...
> The key variable contains the field names. Did you run the code?
> Mark Goldin wrote: 
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>







[ Post a follow-up to this message ]



    Re: Extract fields names  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-07 06:19 AM

Mark Goldin wrote:
> 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 ...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register