If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > HELP? Lost Variable Content!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-03, 22:04
JascWeb JascWeb is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
Question HELP? Lost Variable Content!

Can someone please help me?

I am attempting to store the contents of a Request.Form variable (in this case, a country name) in a cookie. Unfortunately, the contents of the variable are not consistent from one POST to the next.

The first time I choose a country with more than one word (such as "United States" or "United Kingdom"), the form post works exactly as expected.

However, if I simply submit the form again without changing anything, the value truncates at the first occurrence of a space. The Request.Form("country") result is always a single word on this second use of the same value.

What makes this very difficult to troubleshoot is that if I manually choose the exact same value again (from a SELECT/OPTION list), the form posts the proper value.

Why is the form dropping the additional "words" in the variable value when simply submitting?

Anyone??
Reply With Quote
  #2 (permalink)  
Old 03-03-03, 10:07
Frettmaestro Frettmaestro is offline
Registered User
 
Join Date: Jan 2003
Location: London, England
Posts: 106
Some of your code would be handy in order to solve this problem.
__________________
Frettmaestro
"Real programmers don't document, if it was hard to write it should be hard to understand!"
Reply With Quote
  #3 (permalink)  
Old 03-03-03, 11:48
JascWeb JascWeb is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
You're right. That would have helped. I apologize for not providing that in the initial post.

In any event, the issue has been resolved. With the help of another site, I discovered an error in my syntax and all has been corrected.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 03-03-03, 12:51
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
it would be helpful if you could post a link to the other forum post where you resolved this, for others reference.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On