getting value from a disabled textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeseeker1
    New Member
    • Jan 2009
    • 14

    #1

    getting value from a disabled textbox

    hi all,
    i have a disabled textbox in a php page .But i need to get its value on form submit.can anyone help me?

    thanks in advance
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    Why would a disabled textbox have a value?
    If you are assigning it a value from a script, consider replacing it with a <input type="hidden"> element.

    If the box is initially enabled, and then disabled after it has been filled out, you would have to pass the value on to a hidden <input> if you want it sent along with the rest of the form. A disabled box will be excluded from the form when it is sent.

    Comment

    Working...