How can I get form results posted in HTML to accept line breaks?

L

LA at MCHS

When I try to put a form that guests can type a paragraph in, it works as a
text area with results showing up on another page that is html. (I am using
HTML as the type under form options). However, when the person hits "ENTER"
to make a new line in the form input box, the results still show one solid
paragraph, with no line break. When I use formatted text, it makes the line
break, but if people DON'T hit enter, then the results scroll all the way
across the page, and it also has an unattractive font, that I can't figure
out how to change. The forms work, but they are not how I want them to look!
 
K

Kevin Spencer

White space characters (including spaces, line breaks, tabs, etc) are not
rendered in the browser, except as a single space. This is an HTML rule.
HTML uses tags for line breaks (<p></p> for paragraphs, <br/> for
single-line breaks). So, if you want to format the results, you will need a
custom server-side form handler application.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top