Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

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

LEGEND ,
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

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


TOPICS
Server side applications

Views

284
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

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
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 20, 2006 Apr 20, 2006

Copy link to clipboard

Copied

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





Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 20, 2006 Apr 20, 2006

Copy link to clipboard

Copied

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
>
>
>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 20, 2006 Apr 20, 2006

Copy link to clipboard

Copied

LATEST
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.


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines