ASP FormsAs of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I've this form which accepts variety of data including textfields ..i use POST.. now when i send it to my processing page i dont get the line breaks which ive entered in the textfields
in the end this data from textfield goes to access database into a field of type text - memo
how do i get back the line breaks using ASP so that when i retrieve my msg later from the db it shud look exactly like how it wuz typed in .. i dont want to mess up with javascripts ..
Take a look at the WRAP attribute of the <textarea> (I think that wrap is only supported by IE). You'll see that the default is not to submit line breaks. Try changing the value to 'hard' or 'off' and see if that sorts it out. (When you retrieve it later, display the text inside <PRE> tags. That will preserve your line breaks.)