What I am trying to do is simple. When I get the data from a text area in a textbox in a form , here is what I am doing to put it in a doc file.
Since it is a multiline text area, MS Word ignores the breaks in the text area.Code:$resume = $_POST['resume']; $profile = $_POST['lname']."_"."Profile".$filedate.".doc"; $profile = fopen($profile, "w") or die( "Error opening file" ); flock ($profile, LOCK_EX); $doc_content = "<html><head></head><body> <b>Resume: </b> <br> $resume <br> </body></html>"; fwrite ($profile, $doc_content);
so if i put:
It shows asCode:Since it is a multiline text area.
I think the way to get that is to take it (textarea) in an array and then append a break tag (<br>) at the end of each line. Am I in the right direction? If so, how do i do it?Code:Since it is a multiline text area.
Thanks



Reply With Quote

Bookmarks