Results 1 to 2 of 2

Thread: Online editing HTML

  1. #1

    Thread Starter
    Junior Member plawe's Avatar
    Join Date
    Dec 2000
    Location
    Austria
    Posts
    23

    Unhappy Online editing HTML

    Hi!

    This time I have a basic question. I am using PHP + mySQL for creating dynamic webpages.

    Now I want to write a page, where a user can enter simply text. This text (news, docs, etc...) is then stored in the database.

    On the homepage there is automatically a link created that displays a webpage containing this text. Sounds simply, so far, infact it is almost the same like the Inputbox on this newsgroup.

    My problem is that with the PHP-command "echo ($message)" all linebreaks are ignored. So the whole text is only one block. It is possible to enter the html-codes (<br>, etc.), they are interpreted, but my users don't know HTML.

    Have you any advice for me? Thank you very much in advance.

    Werner

  2. #2
    scoutt
    Guest
    I thnk you need to change your settings in the Mysql table to 'text' instead of varchar, if tha tis what you have.

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