1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a php function to convert text to decimal ncr?

Discussion in 'PHP & Perl' started by manhal, Jan 20, 2011.

  1. manhal

    manhal Newbie

    Joined:
    Apr 15, 2009
    Messages:
    49
    Likes Received:
    2
    Is there a way to convert input texts to its decimal ncr in php?
    I am currently using the form method (<form> & <input>) to send text information to a php file.

    But I would like to send these texts converted to ncr decimal.
    For example, when I type "abc" in text input, I want it to be sent to php as

    & #97 ;&#98 ;&#99 ;

    The reason because post returns error when text contains quotas, question marks, smile faces ... etc.

    Thanks
     
  2. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    736
    Likes Received:
    237
    Location:
    Down under
    Google is your friend

    Code:
    http://www.phpbuilder.com/board/showthread.php?t=10363200
    -aReJay