Hi...
I currently have a form that gathers information from a user and stores it to an Access database. One of the fields is flexible, and I allow users to enter as many spaces, new lines, etc. And capture that info verbatim into my database.
My problem comes when I want to re-display this info:
I've tried a couple of things:
if I use the <pre> tag, I am successful in outputting the user's info as they had entered it. however, when I do this, I cannot control when the user just types and types and ends up with a supre long string. The <pre> tag won't force a new line and cause the text to wrap if the string goes beyond the width of the page.
if I use any other tag, then the text gets jumbled and not as clear where the user was allowed to put in his/her own linefeeds.
example:
Education field
Input:
Bachelors - Business Accounting
Masters - Astrophysics
output with <pre> tag... all fine and dandy
Bachelors - Business Accounting
Masters - Astrophysics
------
intput:
I graduated from XYZ college with a bachelors in Underwater Basket Weaving and I have a Masters from ABC Graduate college in Skydiving Basket Weaving.
Obviously, the above line is textwrapped because this forum is design to capture both line breaks, as well as continues strings of text.
I can't reproduce the output.. since Tek-tips wonderfully causes text to wrap!
---
I guess my need is:
1. How do I do this?
2. If the explanation is too difficult to do, where should I look to learn how to do this? Earnie Eng
If you are born once, you will die twice.
If you are born twice, you will die once
I currently have a form that gathers information from a user and stores it to an Access database. One of the fields is flexible, and I allow users to enter as many spaces, new lines, etc. And capture that info verbatim into my database.
My problem comes when I want to re-display this info:
I've tried a couple of things:
if I use the <pre> tag, I am successful in outputting the user's info as they had entered it. however, when I do this, I cannot control when the user just types and types and ends up with a supre long string. The <pre> tag won't force a new line and cause the text to wrap if the string goes beyond the width of the page.
if I use any other tag, then the text gets jumbled and not as clear where the user was allowed to put in his/her own linefeeds.
example:
Education field
Input:
Bachelors - Business Accounting
Masters - Astrophysics
output with <pre> tag... all fine and dandy
Bachelors - Business Accounting
Masters - Astrophysics
------
intput:
I graduated from XYZ college with a bachelors in Underwater Basket Weaving and I have a Masters from ABC Graduate college in Skydiving Basket Weaving.
Obviously, the above line is textwrapped because this forum is design to capture both line breaks, as well as continues strings of text.
I can't reproduce the output.. since Tek-tips wonderfully causes text to wrap!
---
I guess my need is:
1. How do I do this?
2. If the explanation is too difficult to do, where should I look to learn how to do this? Earnie Eng
If you are born once, you will die twice.
If you are born twice, you will die once