-
Passing variables by link.
I was wondering if there is anyway of passing a variable by a link.
Matt
-
Re: Passing variables by link.
Yea, like this:
http://www.yourname.com/yourpage.asp?variable=string
"Matt" <mthead28@hotmail.com> wrote:
>
>I was wondering if there is anyway of passing a variable by a link.
>
>Matt
>
-
Re: Passing variables by link.
You just need to use the common url syntax
<%
myUrl = "test.asp?var1=" & server.urlencode(var1) & "&var2=" & server.urlencode(var2)
%>
<A HREF="<%=myUrl%>">Link</A>
Then you get the value of your variables in your link with
<%
var1 = Request.QueryString("var1")
var2 = Request.QueryString("var2")
%>
That's all
_____________________________________________
myLittleTools.net : A new concept of tools
myLittleAdmin : Web-based database administration tool
http://www.mylittletools.net
_____________________________________________
"Matt" <mthead28@hotmail.com> wrote:
>
>I was wondering if there is anyway of passing a variable by a link.
>
>Matt
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|