•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,490 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,707 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 960 | Replies: 3
![]() |
How can I insert text in special form in a textarea and as well as in the database......
e.g.
e.g.
html Syntax (Toggle Plain Text)
[b]H<sub>2</sub>O[/b]
•
•
Join Date: Aug 2006
Location: Netherlands
Posts: 223
Reputation:
Rep Power: 3
Solved Threads: 10
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation:
Rep Power: 3
Solved Threads: 72
I am still trying to figure out exact what you want but i'll try. You could use javascript to insert the tags into the textarea.
Then use php to find and replace "[sub]" & "[/sub]" with the proper tags and then insert them into the database. Is that what you want?
<input type="button" value="Subscript" onclick="document.getElementById('message').value+='[sub][/sub]'">Then use php to find and replace "[sub]" & "[/sub]" with the proper tags and then insert them into the database. Is that what you want?
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- The quick 'n' dirty ultra simple vBulletin SEO hack (Existing Scripts)
- Open In New Window Php (PHP)
- PHP safe_mode & effects of turning it off... (PHP)
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- Redirected to "http://search-to-find.com/sec.php?qq=car&pin=37049" (Viruses, Spyware and other Nasties)
- PHP 5 fast&easy web development (PHP)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the PHP Forum
- Previous Thread: help!!!!!!!! me wity my php project
- Next Thread: Frames Help


Linear Mode