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!

Error when populating textarea

Status
Not open for further replies.

culshaja

Programmer
Aug 10, 1999
705
GB
Hi,
I have a page which a user enters data. Some of the input areas are [bold]textarea[/bold].
This page then gets submitted to another ASP page which enters the data into the database. Theis page then redirects to another page which populates itself with data in the database.
If the user has used Carriage Returns in the textarea's then the population of the page fails.
The population of the page is done at client-side using VBSCript on IE5 and IE5.5 on Windows 98 and Windows 2000.
Does anyone have any ideas?

James :) [sig]<p>James Culshaw<br><a href=mailto:jamesculshaw@active-data-solutions.co.uk>jamesculshaw@active-data-solutions.co.uk</a><br><a href= Active Data Solutions</a><br> [/sig]
 
James,

Not sure (perhaps you could include code), but you may need to do a regular expression global search and replace for \n to <br>. TextArea uses ascii encoding not html. If you're assuming html on the last page then it probably would fail.

But, then again, I could be wrong X-) [sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top