Jump to content

What's a good way for users to enter text in a forum?


ethan6

Recommended Posts

Well see that's what I have, but then when I go to output the data that is saved in my database, any odd characters get all messed up.. or when they're entering data, if the user enters an ' (apostrophy) for example, it gives an error.

ok i see how the nl2br() converts \n to <br> , but what if my users just push return and don't enter code in?

 

If a user hits enter it will be stored within the database as a newline. When you display this data on a page, running it through nl2br will covert the newlines to <br /> tags.

 

i'm working with the jWYSIWYG one,. but just wondering how i add a "submit" button?

 

That would have nothing to do with php and more to do with reading the manual of whatever WYSIWYG editor you are using.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.