WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2004, 08:42 AM
WebProWorld Pro
 

Join Date: Feb 2004
Location: England Baby!
Posts: 222
icb01co2 RepRank 0
Default 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.
Reply With Quote
  #2 (permalink)  
Old 02-13-2004, 05:25 PM
WebProWorld New Member
 

Join Date: Aug 2003
Location: Great Lakes Region, USA
Posts: 14
kender RepRank 0
Default

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
__________________
webmaster
Kender Internet Kompany
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0