The following is my problem VB script.
How to get the value of facility(ie. USA) in a URL like
http://myscript?facility=USA?? Thanks!!!


<SCRIPT language="vbscript">
<!--
Sub ChartFX1_UserCommand(wParam,lParam,nRes)

'Set oWSArgs=WScript.Arguments
'For x=0 To oWSArgs.Count-1
' MsgBox oWSArgs(x)
'Next

session("strfacility")= Request.Form("facility")

navigate "http://based on the URL"

End Sub
-->
</script>



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: get some value of a URL by Ray

Ray
Mon Dec 29 14:05:35 CST 2003

It appears you're trying to mix client side and server side code. Also, you
use request.QUERYSTRING for querystring values. Try:


<%
Session("strfacility") = Request.QUerystring("facility")
response.Redirect http://yoururl
%>

Ray at work

"eddie wang" <ewang@kmg.com> wrote in message
news:eOvtTOkzDHA.3436@tk2msftngp13.phx.gbl...
> The following is my problem VB script.
> How to get the value of facility(ie. USA) in a URL like
> http://myscript?facility=USA?? Thanks!!!
>
>
> <SCRIPT language="vbscript">
> <!--
> Sub ChartFX1_UserCommand(wParam,lParam,nRes)
>
> 'Set oWSArgs=WScript.Arguments
> 'For x=0 To oWSArgs.Count-1
> ' MsgBox oWSArgs(x)
> 'Next
>
> session("strfacility")= Request.Form("facility")
>
> navigate "http://based on the URL"
>
> End Sub
> -->
> </script>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!