PHP Show How To Format Font Characters As They Are Submitted By Forms
PHP Show How To Format Font Characters As They Are Submitted By Forms
PHP, Show, How, To, Format, Font, Characters, As, They, Are, Submitted, By, Forms


Fri Feb 29, 2008 12:01 pm - PHP Show How To Format Font Characters As They Are Submitted By Forms
#1887
PHP Show How To Format Font Characters As They Are Submitted By Forms
author: pinguin
Leave Your Comments
name
comments
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
URL Link: ask
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed: ask
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
BBCODE: ask
| More
Mon Jun 18, 2007 11:00 pm - Re: PHP Show How To Format Font Characters As They Are Submitted By Forms
#2120
Marc
thanks for the script, but i would recommend the use of the nl2br() function.
it worked for me:
php.net/manual/en/function.nl2br.php

Tue Jun 19, 2007 12:12 pm - Re: PHP Show How To Format Font Characters As They Are Submitted By Forms
#2121
hostman
wow, thanks, i never knew about this function. it works

here's my example:


<?php
echo nl2br("this is line1 n and this is line2 ");
?>;


this is the outpu:

this is line1
and this is line2


so basically nl2br() Returns string with '
' inserted before all newlines, so it changes the n to
or
with is the return charrage or charracter for in hmtl.
Sun Feb 10, 2008 5:31 pm - Re: PHP Show How To Format Font Characters As They Are Submitted By Forms
#2122
hostman