php - Resize echo text -


I have a page that types the user from that text, if the user types a lot in the form and , The page that displays the text is the horizontal scroll bar, how can I automatically make text as a line break after filling the screen? It should be 8.5 x 11 so that it can be printed. What should I do on the textbox / display page? Here are some of the codes I have used:
Text area:

  & lt; Textarea name = "body" id = "textarea" & gt;  

Display Page:

  & lt; H3 & gt; & Lt ;? Php echo "$ body"; ? & Gt; & Lt; Br / & gt; & Lt; / H3 & gt;  

When the text is sent using the post, it is encoded and decoded. Thank you ..

You can use it to get on the PHP side.

But you can use div with a predefined width:

  & lt; H3 style = "width: 8.4in;" & Gt; & Lt ;? Php echo "$ body"; ? & Gt; & Lt; Br / & gt; & Lt; / H3 & gt;  

Comments