Ask a Question related to Coldfusion Database Access, Design and Development.
-
Xijitok #1
DB data incompletely writing to text box
Hello all,
I am having trouble getting all the data in a database field to write to a
text box.
The data is being pulled from an Access database's table and is being written
to an HTML text box. The data does have a couple of double quotes in it, and
the text box has all the data up to the double quotes ("). However, if I
output it
directly in the HTML page via output (not in any control like a text box), it
does
ok, and it does just fine when I use a <textarea> instead of a text box, too.
Please see the code below. The last two attempts work, but the top attempt,
using the text box, only gives me the data up to the first double quote ("),
as in
the following example:
Sample data: This program likes "textareas"
Text box result: This program likes
Please help if possible!
Thank you!
<cfparam name="Catalog_Desc" default="" type="string">
<html>
<head>
<title>Text Box Problem</title>
</head>
<body>
<form>
<cfoutput query="Creatures">
<input name="try_again" type="text" id="try_again"
value="#Creatures.Catalog_Desc#" size="60" maxlength="60">
<br>
<p>#Creatures.Catalog_Desc#</p>
</cfoutput>
<cfoutput query="Creatures">
<textarea name="uglyduckling" cols="37" rows="1"
onFocus="this.blur()">#Creatures.Catalog_Desc#</textarea>
</cfoutput>
</form>
</body>
</html>
Xijitok Guest
-
Writing HTML data to XML
I've been playing around with Phil's tutorial (http://www.macromedia.com/devnet/mx/flash/articles/flashpro_asp.html) and am trying to make a... -
writing rotation data to a file problem
dear forum, i tried to write the camera position and rotation to a file, so i can use it in another programm. i am doing the following things:... -
Writing Data to external files
Hi All, I need help writing data to external files. Do i need to download FileIO extra, or are there any built-in functions which i can use. ... -
Can I use PHP for selecting and writing data into a server-database?
Hi, I like to build a small simple dinamic website: Point-of-sale (detail-shop), So entering stock, logging all sales, print out invoices and... -
reading/writing data in an INI
Just a quick one How would I go about reading/writing data in an INI without importing it etc I need to read/write data into the win.ini file... -
Xijitok #2
Re: DB data incompletely writing to text box
Hello all,
This is the code that fixed the problem:
<cfform>
<cfoutput query="Creatures">
<input name="try_again" type="text" id="try_again"
value='#Creatures.Catalog_Desc#' size="60" maxlength="60"><br>
</cfoutput>
</cfform>
Xijitok Guest



Reply With Quote

