Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the parameter from the url of site using asp with vbscript

I have the code of Jquery for link to the asp page as below:

Jquery code:

var url = "script_right2.asp?soc="+societe+"&phoneNum="+phoneNumber+"&seleDro="+sedro+"&desc="+des;

I want to get the value of societe,phoneNumber,seleDro,desc to the page script_right2.asp

But the problem is that I do not know how to get these data in asp page using vbscript.

like image 680
Maly.itc Cute Avatar asked Sep 03 '25 06:09

Maly.itc Cute


1 Answers

I'm not sure what the question is so I'll answer it twice!

To replicate what you have using VBScript:

dim stringUrl
stringUrl = "script_right2.asp?soc=" & societe & "&phoneNum=" & phoneNumber & "&seleDro=" & sedro & "&desc=" & des;

Or, if you want to get the value of the variables from the query string you could do

dim soc
dim phone
dim sedro
dim desc

soc = Request.QueryString("soc")
phone = Request.QueryString("phoneNum")
sedro = Request.QueryString("seleDro")
desc = Request.QueryString("desc")
like image 169
Dave Avatar answered Sep 05 '25 02:09

Dave