Markup inside form textareas?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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


    Sander Voerman Guest

  2. Similar Questions and Discussions

    1. Buttons for links inside flash form
      Is it possible to place buttons inside a flash from and use these buttons to exit the form and go to another page? I assume using GetURL would be...
    2. 'DataGridLinkButton' must be placed inside a form tag with runat=server
      Can you please explain this more? I am new to asp.net, and not sure I understand what you're saying. Do you mean simply make sure your control is...
    3. Web Form Designer deleting collection markup on Custom Server Control
      I am trying to implement a custom server control which exposes a collection and uses the ParseChildrenAttribute to populate it from child elements...
    4. form inside a movie clip
      I have an empty movie clip that when a button is pressed loads a .swf with a form made up of components. when I test the form on its own everything...
    5. Form inside a table question
      When I go through the "Validation" Feature of DWMX I get error on a line that "The tag: 'Form' is not allowed within: 'Table'. It is only allowed...
  3. #2

    Default Re: Markup inside form textareas?

    "Sander Voerman" <mephisto@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
    Matthias Esken Guest

  4. #3

    Default Re: Markup inside form textareas?

    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
    sotto Guest

  5. #4

    Default Re: Markup inside form textareas?

    In article <bh8d03$ej4$1@news1.tilbu1.nb.home.nl>,
    "Sander Voerman" <mephisto@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?
    [url]http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html[/url]

    --
    CC
    CC Zona Guest

  6. #5

    Default Re: Markup inside form textareas?

    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
    Default User Guest

  7. #6

    Default Re: Markup inside form textareas?

    "Sander Voerman" <mephisto@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
    Matthias Esken Guest

  8. #7

    Default Re: Markup inside form textareas?

    Wow!! Thanks!

    > [url]http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html[/url]
    >
    > --
    > CC

    Sander Voerman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139