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

pass parameter to an URL in VBScript

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi,
i want to pass a parameter in my URL in oder to get it back in an other page.

I know that in general we do like this:


but i don't know how to get the curent URL in VBscript, how to change it and how to get it back, always in VBscript ... I have searched many hours in the web, and found nothing. In ASP or Java Script this method is called "query string".
Does anyone have an idee ?

thanks for your help
 
the body tag is like this
<body onload=&quot;check()&quot;>

and in the header you have the code
<script language=&quot;vbScript&quot; >
sub check()
dim k1,k2,k3
dim metav,timi
k1=window.location

k2=instr(1, k1,&quot;?&quot;)

if k2>0 then
k3=mid(k1,k2+1)
k2=instr(1, k3,&quot;=&quot;)
if k2>0 then
metav=mid(k3,1,k2-1)
timi=mid(k3,k2+1)
end if
getparam1=timi
end if
msgbox (&quot; the variable &quot; & metav & &quot;has the value &quot; & timi)
end sub
</script>

 
what do you mean by server variables ? (sorry i just begin in vbscript)
thanks
 
again thanks to every body that helped me, i have enought things to search by my own,

best regards

elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top