djtizzlemaster
Programmer
Working on an order form. On the page with the form (let's say form.php), there are textareas.
Let's say a user enters this data into a textarea:
Line 1
Line 2
Line 3
On the page that this form is POSTed to (let's say verify.php), when I echo the variable, it shows up as:
Line 1 Line 2 Line 3
Notice there are still spaces in between Line1 and Line 2, and between Line 2 and Line 3. This seems to indicate that verify.php is reading those line breaks but instead turning them into spaces.
How do I get it to display exactly as it was on form.php?
Line 1
Line 2
Line 3
Let's say a user enters this data into a textarea:
Line 1
Line 2
Line 3
On the page that this form is POSTed to (let's say verify.php), when I echo the variable, it shows up as:
Line 1 Line 2 Line 3
Notice there are still spaces in between Line1 and Line 2, and between Line 2 and Line 3. This seems to indicate that verify.php is reading those line breaks but instead turning them into spaces.
How do I get it to display exactly as it was on form.php?
Line 1
Line 2
Line 3