Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Inputtin subscript in html text area

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-07, 05:04
teenastpl teenastpl is offline
Registered User
 
Join Date: Sep 2007
Posts: 4
Inputtin subscript in html text area

Hi there

I want to let the user input text in subscript format in my html form's text area.
could anybody please tell me how to get that and how could i store it in to the database.


Regards
Reply With Quote
  #2 (permalink)  
Old 09-27-07, 11:14
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
Are you talking about using the <sub> html tags?
Just get them to write:
This is my phrase <sub> blah blah blah </sub> straight into the textarea.

note : YOU are responsible for sanatizing the input from the user so make sure you do
note : htmlentities will turn everything you need into text based format for storing. i.e. < becomes &lt;
Reply With Quote
  #3 (permalink)  
Old 10-01-07, 05:15
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
note3: use strip_tags($str,[optional] $allowable_tags) to remove HTML tags from your input.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On