problem in getting values of text box in POST array

Discussion in 'PHP' started by learnerabn, Oct 13, 2010.

  1. #1
    Hi all,

    i am having a problem with text boxes and post array.
    I cant able to get the values of the text box in post array if i set the text box as disabled can any one help me?

    Thanks in advance...
     
    learnerabn, Oct 13, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    if you set it to disabled then its as it wasn't there. use readonly instead.
     
    stephan2307, Oct 13, 2010 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    DISABLED means disabled .. as said by stephan2307, it exists only visually and only on the page it's created on.
     
    ActiveFrost, Oct 13, 2010 IP
  4. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #4
    stad of disabled why not set it as hidden then you can still pass the value, or set the value after the array is passed.
     
    lowridertj, Oct 13, 2010 IP