Skip to main content
Inspiring
April 19, 2006
Question

Set Session variable - Want "1" get ", 1" with comma.

  • April 19, 2006
  • 4 replies
  • 333 views
I am trying to pass a session variable to another page. It doesn't seem to
matter how I set it but I always end up with the session variable having a
comma in the front of it.
"1" get ", 1"


<%
if (cStr(cStr(Request.Form("Customerinfosubmit"))) <> "") then
Session("ssShippingType") = "" & cStr(cStr(Request.Form("ShippingType")))
& ""
end if
%>

What is causing this? Thanks


This topic has been closed for replies.

4 replies

Inspiring
April 20, 2006
Didn't find a duplicate form field with the same name but I changed the name
of the one I wanted and it worked perfectly.

Nevermind, just found the other form element...

THANK YOU ! Now I know to look out for that.


Inspiring
April 20, 2006
Ok,,,that sounds like it's probably it.
"Julian Roberts" <nospam@charon.co.uk> wrote in message
news:e27jkh$flp$1@forums.macromedia.com...
> You'll probably find that you have 2 elements with the name ShippingType
> in your form.
>
> --
> Jules
> http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>
>
>


Inspiring
April 20, 2006
You'll probably find that you have 2 elements with the name ShippingType in
your form.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Inspiring
April 19, 2006
You are what's causing this :-)

Build your statement one test at a time and start by rewriting this
mumbo-jumbo...
& cStr(cStr(Request.Form("ShippingType"))) & ""

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/



"lee" <lfairban_nospam@amep.com> wrote in message
news:e26fga$3o9$1@forums.macromedia.com...
>I am trying to pass a session variable to another page. It doesn't seem to
> matter how I set it but I always end up with the session variable having a
> comma in the front of it.
> "1" get ", 1"
>
>
> <%
> if (cStr(cStr(Request.Form("Customerinfosubmit"))) <> "") then
> Session("ssShippingType") = "" & cStr(cStr(Request.Form("ShippingType")))
> & ""
> end if
> %>
>
> What is causing this? Thanks
>
>