473,396 Members | 2,020 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,396 software developers and data experts.

TextArea - Formatting text

Hi,

I've created a form that has a 3 fields.

2 textboxes (username & password)
1 TextArea (notes)

I have linked this to an access DB.

This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?

Either

Using <b>username</b> and entering it into the DB, but how do I
display the username bold in the textarea.

Or Any other ideas ??

Thanks
Jul 23 '05 #1
6 15417
On 24/8/04 11:57 am, TomT wrote:
.. (snip) ..
username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?
Sure, how about "<B>Bob D</B> - This a sample note."

Or better still: "<STRONG>Bob D</STRONG> - This a sample note."

Either

Using <b>username</b> and entering it into the DB, but how do I
display the username bold in the textarea.


You can't do that. Just get rid of the <TEXTAREA> and </TEXTAREA> tags.
You'll need to write a server-side script to do the necessary processing.

I suggest you take a look at some of the bulletin board systems out there
and see how they handle it. For example, phpBB provides a "Preview" button
that you can use to see how your posts will look before you actually send
them.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #2

"TomT" <to**@adslweb.co.uk> wrote in message
news:9p********************************@4ax.com...
Hi,

I've created a form that has a 3 fields.

2 textboxes (username & password)
1 TextArea (notes)

I have linked this to an access DB.

This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?


No. No markup is allowed inside a textarea, which is only designed to
contain plain text.

Jul 23 '05 #3
What can I do then ??

Any Ideas ?

On Tue, 24 Aug 2004 09:12:47 -0400, "Harlan Messinger"
<h.*********@comcast.net> wrote:

"TomT" <to**@adslweb.co.uk> wrote in message
news:9p********************************@4ax.com.. .
Hi,

I've created a form that has a 3 fields.

2 textboxes (username & password)
1 TextArea (notes)

I have linked this to an access DB.

This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?


No. No markup is allowed inside a textarea, which is only designed to
contain plain text.


Jul 23 '05 #4
TomT <to**@adslweb.co.uk> writes:
On Tue, 24 Aug 2004 09:12:47 -0400, "Harlan Messinger"
<h.*********@comcast.net> wrote:
"TomT" <to**@adslweb.co.uk> wrote in message
news:9p********************************@4ax.com.. .
This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

Is there anyway to write the Username in Bold ?
No. No markup is allowed inside a textarea, which is only designed to
contain plain text.


What can I do then ??


You could use plain-text *bold*. It's generally understood as emphasis.
Any Ideas ?


Alternatively, change the storage of the notes field to be a notes
table, with username and note as fields within that. Then display them
in some other sensible way - i.e. don't display already-entered notes
inside the textarea.

You could do this without needing to change the storage format if you
did some text processing of the current notes content.

--
Chris
Jul 23 '05 #5

"TomT" <to**@adslweb.co.uk> wrote in message
news:f6********************************@4ax.com...
What can I do then ??
First, don't top-post, because then when we get this far, when I place my
responses directly after the remarks from you to which they relate, the
entire message comes completely out of order and no one can follow it.

Second, there's nothing you can do if you want the data to be displayed in a
text area and you want it to be variably styled. You can either display
plain text inside a text area in a uniform style, or you can display fully
styled text but not in a text area.

Why do you want it in a text area?

Any Ideas ?

On Tue, 24 Aug 2004 09:12:47 -0400, "Harlan Messinger"
<h.*********@comcast.net> wrote:

"TomT" <to**@adslweb.co.uk> wrote in message
news:9p********************************@4ax.com.. .
Hi,

I've created a form that has a 3 fields.

2 textboxes (username & password)
1 TextArea (notes)

I have linked this to an access DB.

This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?


No. No markup is allowed inside a textarea, which is only designed to
contain plain text.


Jul 23 '05 #6
TomT wrote:
Hi,

I've created a form that has a 3 fields.

2 textboxes (username & password)
1 TextArea (notes)

I have linked this to an access DB.

This is working well, the user enters thier Username & password, fills
in the notes field and the notes are then updated, as follows:

username - notes..notes..notes..notes..notes..
ie: Bob D - This a sample note.

This displays in the textarea fine.

Is there anyway to write the Username in Bold ?

Either

Using <b>username</b> and entering it into the DB, but how do I
display the username bold in the textarea.

Or Any other ideas ??

Thanks


Not in a formfield, like a textarea. they are just plain text. After the
post you could have your cgi generate the message in a DIV with
formatting via your script, or use javascript to 'mirror' the input to
DIV for DHTML supported browsers if you want to show it formatted
dynamically before posting form

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 23 '05 #7

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

Similar topics

5
by: bonehead | last post by:
I am using a php html form with data which is loaded from a mysql database. Three of the fields are textareas. The data loads into these fields fine, except that the loaded text starts at what...
5
by: Piotr Wolski | last post by:
how can i format textarea? f.e.: <textarea><b>i wqant this text to be bold</b></textarea>
6
by: Matt | last post by:
I have a textarea that is populated from a blob within a database. Everytime the data is pulled, however, there is always a lot of leading space characters before the actual text. It is not in the...
4
by: Chamomile | last post by:
does anyone know if its possible to full-justfy text in a <textarea>? I can do left and right justify and center with a simple style declaration, but can't find any reference anywhere to a full...
10
by: Perry van Kuppeveld | last post by:
Hi, I have a problem with formatting a table including text fields wich can contain up to 255 chars. I need a table with 3 columns: - First column 50 % over the with a rowspan of the total...
6
by: Tony | last post by:
The w3schools HTML tag reference for <textarea> http://www.w3schools.com/tags/tag_textarea.asp says that the attributes 'cols' and 'rows' are REQUIRED attributes for the textarea tag. Looking at...
2
by: K. | last post by:
I have such a text <input type="text" name="search_txt" value=""> <textarea name="txt_m"> My hobby is bicycle. My hobby is driving a car. </textarea> I would like to bold and color a...
3
by: LoliPopas | last post by:
I'm stupid in Javascripting, but i making php forum with BBcode. and i need help with this: <head> <script> function formatSelected(from_obj, formatting, format2) { from_obj.focus (); ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.