Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: inserting text into text area button

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Posts
    216

    inserting text into text area button

    Hi all,

    Ok i've got a problem and im gonna confuse you cause i dont know how to explain it.

    I'm creating a content managment system for a site. I have a button that allows users to add paragraphs to a page. This works by bringing up a text area whereby the user enters there paragraph and it is then stored in a database table.

    i.e. very similar to how this site posts a question.

    I have also added buttons, as this site does to input styles into the text form.

    i.e. within the add paragraph section there is the main text area a small text box. everything typed into the main text area has a set style. if the user types something into the small text box and clicks the 'bold' button then what ever was in the textbox is displayed in the text area within tags.

    ok with me so far?

    my problem is that i dont want the user to see HTML tags in the text area i'd rarther they see something like, <BOLD SECTION> <BOLD SECTION ENDS>.

    But at the same time i want the tags to be passed through to the database table.

    Wow, i confused myself royally there, hope you can understand what im saying better than me :).

    Thanks, Chris.

  2. #2
    Junior Member
    Join Date
    Aug 2003
    Posts
    9
    Well, you could create a file, similar to BBCode..
    then have the page look to that file for formatting, and have the buttons print [BOLDED TEXT][END BOLDED TEXT] as what you defined as bold in your file

    a little more in the advanced for scripting.. but doable..

    just not by me.. but i understand the theory

Similar Threads

  1. is google ok with sites that has text link color same as regular text
    By deafsinger in forum Google Discussion Forum
    Replies: 9
    Last Post: 10-10-2008, 04:14 AM
  2. Replies: 26
    Last Post: 07-09-2004, 10:44 PM
  3. Replies: 5
    Last Post: 07-04-2004, 12:33 AM
  4. 'area' definition to contain status bar text
    By matthewdean in forum Web Programming Discussion Forum
    Replies: 2
    Last Post: 12-21-2003, 08:45 PM
  5. embedded text area that scrolls...
    By ackerley1 in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 10-20-2003, 03:22 PM

Posting Permissions

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