473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

how to insert tab in an html page???

hi i am amking one appllication inwhich the user enters text in
textarea field. i am saving this value in database and when user
accesses value from database, i want to display text in a format
entered by user. i.e. if the user has entered some text in 2nd line
then it should be displayed on second line and not after the end of
first line in continuation. if user has entered tab in some location,
the tab will be displayed while viewing data from database.

thxs for help in advance...

Jul 17 '05 #1
2 10744
hi.
you can use nl2br to format the user's text when you display it.
From PHP Manual:

nl2br -- Inserts HTML line breaks before all newlines in a string
http://in2.php.net/nl2br

Jul 17 '05 #2
vishal wrote:
hi i am amking one appllication inwhich the user enters text in
textarea field. i am saving this value in database and when user
accesses value from database, i want to display text in a format
entered by user. i.e. if the user has entered some text in 2nd line
then it should be displayed on second line and not after the end of
first line in continuation. if user has entered tab in some location,
the tab will be displayed while viewing data from database.

thxs for help in advance...

Or surround your users input with <pre></pre> e.g.,

<pre>
my text here.
new line here
</pre>
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
2
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the...
0
by: lbailor | last post by:
Hi, I am very new to xml and I'm trying to display a page that pulls fields from my xml file and displays them in a table in an html page. So far this part is working. However, I want my one field...
8
by: Jeff | last post by:
I asked this question sometime ago. some help was given, but A.) i didn't understand the help and B.) I can't find the post. i am looking for a way to take a table of stats on an HTML page, and...
7
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is...
3
by: skyy | last post by:
Hi... Is it possible to insert C++ object into HTML page using the <object> tag? If cant, then i guess the only way is to convert the C code to active X control then insert the active X object...
7
by: cartercc | last post by:
I think I already know the answer to this one, but I'm giving it the old college try. My problem is this: I have an HTML form that sends a bunch of data to a Perl script, where it is validated...
5
by: rotaryfreak | last post by:
hello, im trying to build an application that will incorporate a "forgot password" feature. in order for my feature to work correctly, i am asking the user to type in his/her email address and...
1
by: luftikus143 | last post by:
Hello, I am using the (rather old) Spreadsheet/Excel/Writer.php to export data into Excel format. Now, I would like to insert in a sheet a formatted HTML page, which I cached using the Smarty...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.