Hi All,

I have a querystring that contains the + sign as a separator, I need to read
these values individually in a select statement, for example.

&text=Single+205

where single is the type of room somebody wants and 205 is the user ID in
the Customer table.

Please help.

Regards
Simon

Re: Reading the + in Querystring by McKirahan

McKirahan
Tue Oct 23 05:59:47 PDT 2007

"Simon Gare" <simon@simongare.com> wrote in message
news:#WDrByWFIHA.3980@TK2MSFTNGP03.phx.gbl...
> Hi All,
>
> I have a querystring that contains the + sign as a separator, I need to
read
> these values individually in a select statement, for example.
>
> &text=Single+205
>
> where single is the type of room somebody wants and 205 is the user ID in
> the Customer table.

Querystrings are appended to a URL starting with a "?"
and consist (usually) of name=value pairs seperated by "&".

First use q1 = Split(qs,"&") to seperate each pair
then use q2 = Split(q1,"=") to seperate name from value
then use q3 = Split(q2,"+") to seperate what you want.