Jump to content

Echoing multiline user input


dink87522

Recommended Posts

I have a form a user may submit which has a text area.

 

If the user enters "Today

is

the

first

day

of

 

the

 

week"

 

it will be stored in the database like that (note the carriage returns etc).

 

If I then get that data from the table and echo it, it will print as 'Today is the first day of the week'.

 

How can I print it so that it will retain the user's input formatting/the formatting shown stored in the table?

Link to comment
https://forums.phpfreaks.com/topic/220241-echoing-multiline-user-input/
Share on other sites

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.