Ok, I have a form consisting of 4 text boxes. When the form is submitted, the data is wrote to a temp dat file separated by a "|". My main problem is the last text box. It's actually a multi-line textarea box, but it only shows the first "line" (up until you hit the enter button) not the whole data as entered the first time. Here's the file format:
<p>
Test Test Test Test Test<p>
<p>
The above doesn't show right on here, but each line is separated by "<p>/n<p>/n" (paragraph, new line, paragraph, new line)
Now, I have the following to put this data back into the text box:
$eurom =~ s/<p>/\r/g;
<TEXTAREA name="eurom" rows=6 wrap=virtual cols=60>$eurom</TEXTAREA>
I've tried alot of variations of this but nothing has worked. (regex I mean)
No matter what I try, it will not work. It only shows the first "line" of the data.
Any more ideas?
Code:
Test Test Test Test Test Test Test Test Test Test<p> <p>
Test Test Test Test Test<p>
<p>
The above doesn't show right on here, but each line is separated by "<p>/n<p>/n" (paragraph, new line, paragraph, new line)
Now, I have the following to put this data back into the text box:
Code:
$eurom =~ s/<p>/\r/g;
<TEXTAREA name="eurom" rows=6 wrap=virtual cols=60>$eurom</TEXTAREA>
I've tried alot of variations of this but nothing has worked. (regex I mean)
No matter what I try, it will not work. It only shows the first "line" of the data.
Any more ideas?