| 
	
 | 
 Posted by frizzle on 05/29/06 22:18 
Tommy DN wrote: 
> I just wanted to make something that creates html-code which should be 
> inserted in a mysql database. 
> 
> The user should type text in a textarea. When the user submits the data, 
> all enters should be translated into "<br>" and it would be nice if the 
> user could also insert links ( "<a href="..." ) in the formular. 
> 
> Does someone knows a good, very simple script? There are wysiwyg editors 
> on the net, but I don't need to modify fonts, colors et cetera. The most 
> important thing are the "<br>" tags which should be generated. 
 
Concerning the breaks, you'd might wanna check out the built in php 
function nl2br() 
Found at http://php.net/nl2br 
Turns (textfield) breaks into <br />. 
 
Frizzle.
 
  
Navigation:
[Reply to this message] 
 |