472,965 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Markup inside form textareas?

Hi,

I am going to make a forum using PHP. However, I have a very simple question
to begin with. Is it at all possible to create input fields where users can
type their messages using italic, bold, blockquotes, and the like? So far I
have never witnessed it, my webmail client, for instance, only allows me to
write plain text in the "new e-mail" input form. And blogger, for instance,
does allow you to enter text in bold and italics, but you don't *see* them:
instead, blogger inserts <em> and <strong> tags into the text area. Now
personally I am not afraid of markup tags, but I know a lot of my future
visitors who are. I have looked up the W3C HTML recommendation sections
dealing with forms, and those seem to suggest plain text is all I'm going to
get. Is there no way to create forms with wysiwyg hypertext textareas?

Sander
Jul 16 '05 #1
6 3102
"Sander Voerman" <me******@zonnet.nl> schrieb:
I have looked up the W3C HTML recommendation sections
dealing with forms, and those seem to suggest plain text is all I'm going to
get. Is there no way to create forms with wysiwyg hypertext textareas?


There is no way with (X)HTML/CSS/JavaScript. You could write a Java
program for this task.

Matthias
Jul 16 '05 #2
On Mon, 11 Aug 2003 17:42:15 +0200, Sander Voerman wrote:
Hi,

I am going to make a forum using PHP. However, I have a very simple
question to begin with. Is it at all possible to create input fields where
users can type their messages using italic, bold, blockquotes, and the
like? So far I have never witnessed it, my webmail client, for instance,
only allows me to write plain text in the "new e-mail" input form. And
blogger, for instance, does allow you to enter text in bold and italics,
but you don't *see* them: instead, blogger inserts <em> and <strong> tags
into the text area. Now personally I am not afraid of markup tags, but I
know a lot of my future visitors who are. I have looked up the W3C HTML
recommendation sections dealing with forms, and those seem to suggest
plain text is all I'm going to get. Is there no way to create forms with
wysiwyg hypertext textareas?

Sander


Try google for "rich text editor" +html or something
Jul 16 '05 #3
In article <bh**********@news1.tilbu1.nb.home.nl>,
"Sander Voerman" <me******@zonnet.nl> wrote:
I am going to make a forum using PHP. However, I have a very simple question
to begin with. Is it at all possible to create input fields where users can
type their messages using italic, bold, blockquotes, and the like? So far I
have never witnessed it, my webmail client, for instance, only allows me to
write plain text in the "new e-mail" input form. And blogger, for instance,
does allow you to enter text in bold and italics, but you don't *see* them:
instead, blogger inserts <em> and <strong> tags into the text area. Now
personally I am not afraid of markup tags, but I know a lot of my future
visitors who are. I have looked up the W3C HTML recommendation sections
dealing with forms, and those seem to suggest plain text is all I'm going to
get. Is there no way to create forms with wysiwyg hypertext textareas?


http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html

--
CC
Jul 16 '05 #4
Sander Voerman wrote:

Hi,

I am going to make a forum using PHP. However, I have a very simple question
to begin with. Is it at all possible to create input fields where users can
type their messages using italic, bold, blockquotes, and the like? So far I
have never witnessed it, my webmail client, for instance, only allows me to
write plain text in the "new e-mail" input form. And blogger, for instance,
does allow you to enter text in bold and italics, but you don't *see* them:
instead, blogger inserts <em> and <strong> tags into the text area. Now
personally I am not afraid of markup tags, but I know a lot of my future
visitors who are. I have looked up the W3C HTML recommendation sections
dealing with forms, and those seem to suggest plain text is all I'm going to
get. Is there no way to create forms with wysiwyg hypertext textareas?


You don't want the users blithely sticking in raw HTML, too much chance
of a screwup. What some forums do is to create their own tag set, for a
small set of markup tags. The form handler then substitutes these tags
with proper markup.

A typical tag set used in these system is (note the
square brackets) to use in replying to a message. You can have a reply
generator automagically present the quoted stuff in these tags, the
respondent can edit that as desired.

This will be replaced by some system-designed quoting mechanism (often
indented with a different background or something). The program would
just replace these made-up tags with <span> or the like with the CSS
classes to control presentation.


Brian Rodenborn
Jul 16 '05 #5
"Sander Voerman" <me******@zonnet.nl> schrieb:
I was afraid someone was going to say that... yeah I could write a message
editor applet in java (sigh). However, in a lot of places java applets are
disabled on browsers, presumably for security reasons. Can I use PHP to
figure out whether the browser supports applets or not, so that I can
provide a simple plain text message form as an alternative?


I don't think so. Maybe you could write a little Java-Applet which
redirects to an other page, but I'm no Java expert.

Matthias
Jul 16 '05 #6

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

Similar topics

30
by: Reinhold Birkenfeld | last post by:
Hello, I know that there are different YAML engines for Python out there (Syck, PyYaml, more?). Which one do you use, and why? For those of you who don't know what YAML is: visit...
38
by: Jukka K. Korpela | last post by:
As well all know, valid markup is important... but when trying to find a convincing modern argument in favor of this, I found pages like http://www.htmlhelp.com/tools/validator/reasons.html which...
2
by: Asad | last post by:
I have a form on a page that has several textareas, and textboxes inside a table (so the table containing the textboxes is also inside the FORM tag). I want to replace the textareas with simple...
5
by: Mark | last post by:
How do I scroll two textareas in sync with FireFox/Mozilla? The IE solution has been posted before by Martin Honnen.
3
by: bradwiseathome | last post by:
I focus on controls in a web form like this: <script language="javascript"> var focusControl = null; if (document.getElementById) focusControl = document.getElementById('txtArea1'); else if...
9
by: Jeff | last post by:
I've always set form element sizes by using size on textfields and rows and cols on textareas. That's always lead to inconsistencies and a bit of guesswork when you want a form element to fill a...
3
gingawarrior
by: gingawarrior | last post by:
Hi All, I've written some code to act as a validator for a set of form fields - it accepts a string of '~' delimited item names and then loops through to evaluate if they are either empty or =='999'...
11
by: dba | last post by:
Have been displaying data from database using html for some time but just recently trying to display data back to "form". Can't find answer. <form method="post" action="<?php echo $PHP_SELF;?>">...
8
by: =?Utf-8?B?QkxVRVNUQVI=?= | last post by:
HELLO, I AM A NEW BII TO ASP,AND I NEED HELP ON THIS ISSUE. I HAVE A .ASP FORM WHICH IS ALREADY BUILT WITH 5 QUESTIONS AND 5 TEXTAREAS RESPECTIVELY.THESE 5 QUESTIONS ARE NOT FIX,THERE WILL BE...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.