TextboxLength problem

Discussion in 'PHP' started by Balamurali, Jul 3, 2008.

  1. #1
    I need Textbox length Maximum 5digit number including (.), i have write the below coding, its get more then 5 digit, anyone can guess what is the problem?
    <input type=text name=credit[] id=creditval maxlength='5' size=3
    style='height:18px;border-color:#000000;font-size:10px'>


    Thanks in advance.
     
    Balamurali, Jul 3, 2008 IP
  2. jmf000

    jmf000 Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What browser you are using?
    It works like a charm in IE6, opera 9.10, FF 2.0
     
    jmf000, Jul 3, 2008 IP
  3. Balamurali

    Balamurali Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    firefox, ie
     
    Balamurali, Jul 4, 2008 IP
  4. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #4
    I tested it and works in firefox 3.. maybe try to put quotes around every argument, so

    <input type='text' name='credit[]' id='creditval' maxlength='5' size='3'
    style='height:18px;border-color:#000000;font-size:10px'> 
    Code (markup):
     
    SedNaX, Jul 4, 2008 IP
  5. Balamurali

    Balamurali Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Its work but some time it takes more then 5 digits.
     
    Balamurali, Jul 4, 2008 IP