My problem is that I have a form on one page and within the form is a text box. This passes to the next page and is saved into a session using
$_SESSION['text'] = $_POST['text'];
This saves the data in the session no problem at all and works fine when I echo the data on a new page if the text that has been placed in the text box on the form is just a paragraph. Problems occur when someone has clicked return in the box, say to create a list as below:
- test 1
- test 2
- test 3
- test 4
would become:
- test 1 - test 2 - test 3 -test 4
I know this is probably really really easy but I cant find the code I need to use anywhere!!
Thanks