How To Get Variable From URL in .ASP
RegisterLogin
How To Get Variable From URL in .ASP
Post Description: Today We Will Show You How You Can Get The Variable From The Url Using Get In A Form
Tags: How, To, Get, Variable, From, Url, In, .asp
This Post Was Posted On Dec 08, 2009 By Webune Tutorials #2863
Post Description: Today We Will Show You How You Can Get The Variable From The Url Using Get In A Form
Tags: How, To, Get, Variable, From, Url, In, .asp
This Post Was Posted On Dec 08, 2009 By Webune Tutorials #2863
How To Get Variable From URL in .ASP by Webune Tutorials
http://www.webune.com/forums/default.asp?category=windows
as you can see from the url, the value of category is windows, so to get the value of category from the url and display it on my script all i have to do is use this ASP code:
ASP CODE:
response.write("The Category is: " & request.querystring("category"))
and the output will be like this:
The Category is: windows
also you can get the value using a web form...for example, lets say i have this form:
HTML CODE:
<form method="GET" action="default.asp">
<input type="submit" name="category" value="windows">
</form>
<input type="submit" name="category" value="windows">
</form>
so when you submit the form, it will also get the value of category
we have provided an example script you can download in the attachment section below so you can try it out
Download File: default.asp
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Mon Dec 19, 2011 4:11 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3