SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: How to allow to type arabic in web page textbox

  1. #1
    SitePoint Addict dr_dumb99's Avatar
    Join Date
    Sep 2004
    Location
    Pakistan
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to allow to type arabic in web page textbox

    Hi!
    How can I allow a user to type arabic text in my input box on my web page.

    For example : I want a user to type his/her username in Arabic and from right to left. How is it possible to do so on my web page.

    2- How can I insert this user submitted text in my Mysql database . I mean how and in which format?

    3- How to display this dynamic text on my web page . For example, how can I show username in Arabic on my web page.

    Thanks in advance

  2. #2
    SitePoint Zealot mwasif's Avatar
    Join Date
    Apr 2007
    Location
    Pakistan
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. Use dir="ltr" as
    Code HTML4Strict:
    <input type="text" name="username" dir="rtl">

    2. Column Collation set to utf-8. Also take a look at this. Set mysql connection type to utf-8

    3. Add this meta tag to your HTML page
    Code HTML4Strict:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Bookmarks

Posting Permissions

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