Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

store html line break in database

<textarea 
    name="PostContent" 
    class="form-control" 
    rows="12" cols="30"
    id="PostContent" 
    required=""
    style="white-space: pre-wrap; text-indent: 50px;"
    >
</textarea>

$PostContent=$_POST["PostContent"];
$output =nl2br($PostContent);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #html #line #break #database
ADD COMMENT
Topic
Name
3+2 =