Click to See Complete Forum and Search --> : General help with ASP
cls224
Apr 7th, 2001, 11:46 AM
I am submitting data to an asp page throught the URL...
But for some reason its not working..
I have an asp page that takes two fields as input and returns some data. How can i submit those two fields using just the Address bar?
And is there any special code i need to use in the asp to read that data from the bar?
Thanks
ines
Apr 7th, 2001, 12:42 PM
why don't you put those two text fields in a form, post it and than retrieve the values 'request.form'?
Active
Apr 7th, 2001, 02:19 PM
The form tag should be like this..
<form action="whatever.asp" method="get">
<input type="text" name="age" value="">
</form>
Then in whatever.asp to get back the age..
use
age = request.querystring("age")
JoshT
Apr 9th, 2001, 06:57 AM
And then to manipulate the data using just the address use something like this (Active's form would generate this also).
http://www.mysite.com/whatever.asp?age=78
You could then change the 78 to whatever and hit enter for testing, without having to flip back and forth between the form page and the results page. More values would be appended like this:
http://www.mysite.com/whatever.asp?age=78&name=Bob&car=Dodge
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.