Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating text for placement in a form

Status
Not open for further replies.

hallm

Programmer
Jun 11, 2000
159
US
I'm working on a asp that will allow you to edit a record from the database.&nbsp;&nbsp;When my memo fields from the database are put into the asp it only shows the last line of the item.&nbsp;&nbsp;For example I have a story with about eleven lines of text.&nbsp;&nbsp;When I use the following to insert it as the default value of a form it just shows the last line of the text.<br><br>set story = db.execute(&quot;SELECT * FROM news WHERE NewsID=&quot;&request(&quot;strID&quot;))<br>longstory = story(&quot;long&quot;)<br><br>&lt;textarea name=&quot;long&quot; cols=&quot;67&quot; rows=&quot;5&quot; value=&quot;&lt;%=longstory%&gt;&quot;&gt;&lt;/textarea&gt;<br><br>What am I doing wrong?&nbsp;&nbsp;Do I have to use a special format function just to insert my text into a form box.
 
Never mind, I figured it out.&nbsp;&nbsp;I just set the html up wrong.&nbsp;&nbsp;Works fine like this.<br><br>&lt;textarea name=&quot;long&quot; cols=&quot;67&quot; rows=&quot;5&quot;&gt;&lt;%=longstory%&gt;&lt;/textarea&gt;<br><br><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top