I'm am posting values to a page and retrieving them via the Request object. I then assign this value to either a Hidden or Session variable. When...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
I'm am posting values to a page and retrieving them via the Request object. I then assign this value to either a Hidden or Session variable. When I go to use the variable, the value is cut off if there was a space included. Ex: 1. oRS.Fields("Country") yields "North America" 2. Submit 3. Request("Country") yields "North America" 4. Session("Country") = request("Country") yields "North" What do I need to do to prevent this??
Last updated
Matthew Pomar
Customer Support
Try using server.URLEncode() before passing as a querystring. Also check if you form method is POST or GET.

Hope this helps.

Regards,
Matthew Pomar
Last updated
Customer
Thanks for the response!

Actually, I have tried that and it creates another issue. It encodes a '+' that I can't get rid of.

So,on my form:

1. Server.URLEncode(oRS.Fields("Country"))
sends "North+America" on the post(BTW: I am doing a Post).

then I try to assign the request to a Session variable:

2. Session("Country") = request("Country")

and gives me "North+America"

I then have the problem of having the '+'. I know assigning Session variables that include spaces is common, but I'm not sure what I'm doing wrong.

Thanks
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!