Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    4

    Unanswered: 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

  2. #2
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    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;

  3. #3
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    note3: use strip_tags($str,[optional] $allowable_tags) to remove HTML tags from your input.

Posting Permissions

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