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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Line chars

Status
Not open for further replies.

rhull

Programmer
May 23, 2001
46
US
Basically I have textarea for the user to enter data to save to a database. I take the value of the textarea store it in a variable then use it in the SQL. But when the users hits enter (newline) it then breaks up the SQL and it doesn't work. It there a good way to remove newlines chars and make it one line or should i do a URL encode thing even though they may have up to a paragraph of data?

Thanks!
-Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top