Jump to content

Line Breaks & Form trouble


whelpton

Recommended Posts

I am currently trying to make an editable profile section using text files and updating form sections.

 

The problem I am having is that the form does not recognise new lines properly. I allways have to enter <br> to create a new line.

 

Is there anyway round this problem?

Link to comment
Share on other sites

well this is my page so far:

 

http://www.alportstudios.co.uk/shared/profilecopy/

 

In the profile section, the text

 

Default Profile test

 

test test WOOOO

 

Has been imputted from my form with multiple line breaks, and a <br> tag which has worked. Im using the nl2br function but it isnt working. When looking at my text file, the formatting is correct when viewed in notepad, but it isnt capturing any line breaks at all apart from the tag.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

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