Jump to content

pndof12006

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by pndof12006

  1. [code]$p = preg_replace("/(\r\n|\r|\n)/","\n",$poem);
    echo "<tr><td align='center'><b>$pname</b></td></tr>";
    echo "<tr><td>&nbsp;</td></tr>";
    echo "<tr><td align='center'>";
    echo $p;
    echo "</td></tr>";
    echo "<tr><td>&nbsp;</td></tr>";[/code]
  2. when it gets inserted in the DB it is in the same format it ws in the text area. example

    SAMPLE
    SAMPLE

    will show like that in the Text Area and in The DB, But when echoed to a page it is like this:

    SAMPLE SAMPLE
  3. Ok, I am starting a poetry website and when users submit a new poem they currently need to add a [code]<br>[/code] at the end of each line. is it possible to make it so when the form is submitted it automatically puts the breaks in the databse?
×
×
  • 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.