atc
05-22-2004, 02:21 AM
In a re-write of Empower2001, which facilitates browser editing of html files
by overwriting the source file with the edited results, I've got a textarea that loads with all text found between special tags in an html file. It does that just fine and it correctly displays all LFs CRs. When the save button is pressed (form is submitted) the result is that the Php variable ('name' of the textarea field) ends up containing all the text except LFs and CRs, i.e. no newlines survive. I've thoroughly checked the html for the textarea and it is correct, with WRAP set to 'virtual'. I tested 'soft' & 'hard' wraps but got same result.
When I intercept the variable's data (just) before submission, the LFs & CRs are all there. Looks great. Immediately after submission, they are gone.
I've also ensured no js is intercepting via onsubmit or other events, and I've checked that the Php doesn't process the data. I've spent many hours checking everything I can think of but alas cannot find the cause.
Any suggestions? :confused:
by overwriting the source file with the edited results, I've got a textarea that loads with all text found between special tags in an html file. It does that just fine and it correctly displays all LFs CRs. When the save button is pressed (form is submitted) the result is that the Php variable ('name' of the textarea field) ends up containing all the text except LFs and CRs, i.e. no newlines survive. I've thoroughly checked the html for the textarea and it is correct, with WRAP set to 'virtual'. I tested 'soft' & 'hard' wraps but got same result.
When I intercept the variable's data (just) before submission, the LFs & CRs are all there. Looks great. Immediately after submission, they are gone.
I've also ensured no js is intercepting via onsubmit or other events, and I've checked that the Php doesn't process the data. I've spent many hours checking everything I can think of but alas cannot find the cause.
Any suggestions? :confused: