Jump to content

php validation


lc21

Recommended Posts

When the data from a text area is stored in a database does it loose all the white space or when outputting it again is there a way to retain this?

 

Use the nl2br() function when you output data that came from a text box. It converts all new lines(\n) to html

<br />

tags.

Link to comment
https://forums.phpfreaks.com/topic/59918-php-validation/#findComment-298668
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.