Forums

This topic is locked

Solved form formatting text - Sharing

Posted 26 Mar 2004 16:55:26
1
has voted
26 Mar 2004 16:55:26 Michal Dusik posted:
I think many ppl will find this useful since the solution I heard of, was only for ASP.
If u have a form and receive data through it and u are using PHP what u get at the end is a long line of characters with no paragraph signs. The html does not see the </br> things so u cant publish the text.
How to add <br> to a PHP text in form?
Simply insert:

<?php
echo nl2br("whaterver u want";
?>
this function.
You can see the whole thing explained on
it.php.net/manual/en/function.nl2br.php

Hope it helps! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Michal Dusik
www.studiodweb.com<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Reply to this topic