Results 1 to 2 of 2

Thread: Double Spaced

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Double Spaced

    I put singlespaced text in a textarea and submit it (using PHP) to a MySQL database. But when I view it, it shows it double spaced, like on this page: http://www.vbshelf.com/snippets/inde...cat=forms&id=1

    How can I fix it?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    When you echo the code, either surround it with <pre></pre>, or replace all newlines (\n or \r) with both newlines and linebreaks (<br>).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width