SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Cairo, Egypt
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with a TEXTFIELD in a form

    hi people, this is my VERY first post in here, i hope i can find the answer for this simple question i have.
    well, is there a way where i can put a text_field <input type=text> where it holds a certain "value" that is UNEDITABLE but VIEWABLE by the visitor, which means that when the FORM is proccessed the value is still there.
    your soonest responds is HIGHLY apprecaited,
    thanks :-)

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welcome to Sitepoint Forums!

    <input type="text" value="some value" name="Some_Name" readonly="readonly" />

    That will get you going. And for future reference, this is an HTML issue, not a JavaScript issue -- but don't sweat it too much, the friendly moderators here will move a post to a more appropriate forum if they feel it to be out of place.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Cairo, Egypt
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dear beatle,
    Thank you so much for your VERY Quick respond :-)
    I really appreciated alot :-)
    sorry for posting in the wrong forum, but i just thought it would be a Javascript function which will make the form field uneditable :-)
    thanks again my friend

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by beetle
    the friendly moderators here will move a post to a more appropriate forum if they feel it to be out of place.
    Off Topic:

    Your wish is my command

  5. #5
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Wow, I've never seen the readonly attribute! Thanks Beetle
    Mike
    It's not who I am underneath, but what I do that defines me.

  6. #6
    SitePoint Enthusiast agentolivia's Avatar
    Join Date
    Jul 2003
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Me neither! And there it was the whole time in my Homesite <input> tag editor!

    Thanks!!


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
  •