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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting data from a form

Status
Not open for further replies.

scottydd

IS-IT--Management
Sep 19, 2002
31
US
How do you query data from a form using VBScript? What I am trying to do is I have a form on one page and after the data is submited it goes to another page. Once it gets to second page how do i query the data that was sent? I figured out how to do it in ASP, but I can't seem to do it in VBS.

Any help would be appriciated...
Scott
 
you can't, you would have to add the fields to the second form and make them hidden so that the VBS could get access to them.
 
This maybe a dumb question, but how would i do this?
 
Also, if i query the data using ASP can i pass this data from ASP to VBS?
 
Just add each one into a RESPONSE.WRITE as follows :

RESPONSE.WRITE(&quot;<input type='hidden' name='myField1' value='&quot; & Request.Form(&quot;origField1&quot;) & &quot;'>&quot;

This puts the value of origField1 from your form into a hidden field called myField1 on the page that is sent back to the user,this can then be accessed via VBScript. Just duplicate this for each field and then put them in a form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top