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

how to retrieve data from a post/get method?

Status
Not open for further replies.

jfdabiri

MIS
Feb 27, 2007
282
US
hi,
i have an hta app that uses vbscript. when a link is clicked, it sends data. here's the code:
Code:
"<a href=" & chr(34) & "test.hta?unit_id=" & _                                     
                                      
"&row=1" & chr(34) & ">" &  full_name
this link calls test.htm with the data: full_name
how do i retrieve full_name in test.hta?
any ideas?
thanks.
 
full_name = Request("full_name")

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
thanks, mark.
i'm getting an error:
type mismatch: 'request'
basically i changed these into .html instead of .hta
i can see the data items in the url in address bar like this:
updateDB.html?email=jerry@isp.net&full_name=JerryKnight&row=1
my question is, when i get to updateDB.html and these items are displayed on the url, how do i retrieve them?
thanks.
 
I would advise you convert them to ASP pages and use IIS. The above advice will work for sure then.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
thanks mark.
this is how the whole string of url on the address bar can be obtained:
my_url_string = LOCATION.HREF
then you can parse it and get the items that you want.
thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top