[RESOLVED] uneditable text field
Results 1 to 3 of 3

Thread: [RESOLVED] uneditable text field

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    11

    resolved [RESOLVED] uneditable text field

    how to make some value in the text box un-editable.....
    but you can only see that but can't edit that.....

    i tried

    type=hidden

    but this hides the field

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Chicago, IL
    Posts
    417
    add the attribute:

    readonly="readonly"
    Bob Lob Law

  3. #3
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,353
    Also note that you should only be doing this as a convenience to the end user - you can not depend upon this value not changing. The end user can bypass any "read only" type restrictions you place on the data, thus you can't assume that it will be unchanged when the form is POST'ed back. If it really matters to you that the data remains unchanged, keep it (or at least a copy of it) on the server side of things (such as by using a session).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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