Jump to content

Inseting data


Recommended Posts

I dont know if this would be a php,html or mysql question, so i tried here furst. I have a textarea where the user enters whatever. Once the user is done, he/she clicks the send button and through ajax the textarea value gets sent to the php file to be process.


The problem is:


Say the user enters this in the textarea


Hello World!


This is a test!


I insert that value into my db. But when I retrieve the value the carriage return is not there.

I looks like this: 


Hello World!This is a test!


What is the problem





Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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