Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing submitted form values

Status
Not open for further replies.

goldsmmi

Programmer
Apr 18, 2001
2
US
Once a form has been submitted how can the values in that form (using either POST or GET) be retrieved? I know using ASP you can use the syntax "Request.form("field")" but unfortunately this page cannot be produced in ASP... it must be an HTML page with VBScript......

Also an added complication is that some of the forms fields are radio buttons with the same name... how are these referenced... I know that in JavaScript this can be done by handling the field as an array... but what would the syntax for this be in VBScript??
 
Why don't you create an <iframe> in the HTML page and call an ASP page in the iframe to do the processing. Your page will always be an HTML page but when you click SUBMIT it will process in the iframe. You will have to write Javascript to call the iframe so that it can call the processing ASP page.
NOTE: iframes only work in IE, Netscape uses layers.
 
I have pretty much the same question. I've got a html form on a local machine, and I need to collect the form values on the second page using VBscript. Now, on an ASP page, I'd just:
===================

somevar1 = Request.Form(&quot;whatever1&quot;)
somevar2 = Request.Form(&quot;whatever2&quot;)
=======================

But that doesn't work on my local machine outside an IIS server environment. I've even tried request.querystring(&quot;somevar&quot;), and I get a &quot;object required: request&quot; error.

Someone, PLEASE tell me what the VBscript syntax is for gathering form results on a NON asp/server machine....

Thanks!
AT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top