Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 2nd, 2005, 12:51 PM
softwaresleuth softwaresleuth is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 softwaresleuth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 3 sec
Reputation Power: 0
Data in variables being truncated when assigned to text or hidden inputs

I have a template (myForm1.cfm) that is being posted to another template (Action1.cfm).

In myForm1.cfm I have a variable called myVar and I'm assigning it to myVar input box.

E.g., <INPUT NAME="myVar" TYPE="hidden" VALUE=#myVar#>

myVar may equal "This is a test" but when assigned to the input field, the field only contains the value "This". It's truncating at the spaces. Thus, when I try to reference #Form.myVar# in my action template, I get truncated data. Any ideas?

Thank you.

Reply With Quote
  #2  
Old August 2nd, 2005, 05:32 PM
softwaresleuth softwaresleuth is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 softwaresleuth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 3 sec
Reputation Power: 0
Solution

In my tag statement I didn't have double quotes around my variable when setting the value param

e.g., <INPUT NAME="myVar" TYPE="hidden" VALUE=#myVar#> should look like:

<INPUT NAME="myVar" TYPE="hidden" VALUE="#myVar#">

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > Data in variables being truncated when assigned to text or hidden inputs


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap