logo

New Response

« Return to the blog entry

You are replying to:

  1. You're right, urlQueryString is not even in the current version of WebSession. :-) I wonder if it ever was. Anyhow, at some point in time somebody had published a WebSession mod, that condtained the following function:

    '/**

    ' * Returns the value of a given URL query parameter.

    ' * Code from 7.0.2 RSS template.

    ' * @param sParamName String specifying the query parameter to read.

    ' * @return String containing the value of given query parameter

    ' */

    Public Function urlQueryString(Byval sParamName As String) As String

    Dim sRtn As String, sTmp As String, i As Integer

    If (Len(Me.queryString) > 1) Then

    sTmp = "&" & sParamName & "="

    i = Instr(Me.queryString, sTmp)

    If (i > 0) Then

    sRtn = Mid(Me.queryString, i + Len(sTmp))

    i = Instr(sRtn, "&")

    If (i > 0) Then

    sRtn = Left(sRtn, i - 1)

    End If

    End If

    End If

    URLQueryString = sRtn

    End Function

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: