Post non-asp form to asp.net page

H

Hellp

I have a non-asp page with a form as follows:

<FORM action='FormPost.aspx' method=post encType=text/plain>

<INPUT type=hidden value=" GHT Tankage">
<INPUT size=6 name=2977_>
<INPUT size=40 name=note2977_>
<INPUT type=submit value=Submit>

</FORM>

I would like to pass the form name/values pairs to the FormPost.aspx
page so it can write the values into a database.

Someone recommended :

You can simply access the values via Request.Form(FIELD_NAME), like
Request.Form("2977_")

However, I have two barriers to this: 1) I won't know the
field_names in advance so I have to loop through the collection, and
2) There seems to be a problem with my request.form object. When I
try to use request.form, the poperty does not what to take an
fieldname argument. Do I need to declare/demension some objects
before using the properties/method?


Thank you for the help. Much appreciated
 
C

Curt_C [MVP]

you can loop the entire Request collection

Also, what language are you using? If C# it'e Request.Form["fieldname"] not
("fieldname")
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top