Having odd problem with .txt file being used for my <form method="Post" action=...>"

Posted on 2007-07-24
Last Modified: 2010-04-09

I have a simple .txt file online that I use when users are submitting data to me from my webpage via email (pretty simple stuff).  One of the sections of the .txt file has the following:



Now on the TECHNICAL/FOCUS SECTION I get back what I expect:

Business Intelligence, Average,3.0


BUT, on the SOFTWARE/PACKAGES SECTION, I don't get a character return between rows.  It just gives me the first row, then a space and then the second row starts and so on.  Needless to say, this is confusing to look at.

What is causing it to see the carriage return in the first instance and NOT see it in the second?
Question by:MitchellVII
    LVL 54

    Accepted Solution

    Is the result above as it appears in a text editor (i.e. Notepad) or in a browser?

    What is the code that either creates (if text editor) or shows (if browser) the content?

    Basically the problem could be the first section using a carriage return and line feed character and the other section just using a line feed character.  Depending on where the problem appears the solution could be a few different things.

    If the server is used to make or show the file then what server language do you use?  If it is an issue as it appears in a browser then which browser?  Can you provide a link or upload the file?

    Let me know how this helps or what additional info you need.

    LVL 5

    Expert Comment

    It sounds like your whitespace isn't being preserved.  Can you do a "View Source" and see whether it is appearing okay in the source and just not displaying correctly?
    LVL 54

    Expert Comment

    I'm glad I could help.  Thanks for the grade, the points and the fun question.

    LVL 5

    Author Comment


    You know, it's weird, but so many experts refer to my questions as "fun".  To me they seem pretty noobish and annoying.  Oh well :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now