Form Field Message Comming through as one line

S

Sue Roussie

I have created a contact form using Front Page 2003. In
this form I have the standard fields for name, address,
etc. I also have a text box field 40 characters in width
and 4 lines in height. The user types in his request to
send off to the person. When it comes through in e-mail
the message is displayed as one long line instead of word
wrapped. When you print the message the same line prints
all the way across the page as one line cutting most of
the message off. I am very new to Front Page. How can I
adjust the filed so that the message in the text box is
received as word wrapped and not all in one line.

Thanks,
Sue
 
J

Jim Buyens

Try adding wrap="off" to your <textarea> tag. This will
stop the browser from throwing away any line endings that
the visitor enters.

Depending on how you display the saved data, you may also
need to convert the line endings to <br> tags. In an ASP
page, for example, instead of
response.write mydb("instructions")
you might need to code:
replace(server.htmlencode(mydb("instructions")), _
vbCrLf, "<br>")

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
S

Sue ROussie

I added the tag to my form and it still does not work. I
noticed that when I type continually the box just keeps
scrolling and the line continues. It never goes to the
next line unless I hit enter. I geuss I need someway to
restrict the user to a limit of say 40 characters per
line. The input is being related back through e-mail in no
particular format other than what Front Page produces.
 
J

Jim Buyens

Well, then try wrap="hard". If that doesn't do it, you may
just have to live within the capabilities of the browser.

wrap="soft" is the default. Text is displayed with
wordwrapping and submitted without carriage
returns and line feeds.
wrap="hard" Text is displayed with wordwrapping and
submitted with soft returns and line feeds.
wrap="off" Wordwrapping is disabled. The lines appear
exactly as the user types them.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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