View Single Post
  #4   Spotlight this post!  
Unread 29-09-2002, 20:15
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Well, if the script parsing the HTML form is written in PHP, you can simply use the nl2br() function. Lets say the textbox input is saved to the variable $info. To convert all the newline characters present in it, you would do:
Code:
$info = nl2br($info);
Otherwise, you could do some sort of regex command. Post some more information if the script isn't written in PHP.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003