hidden values to a textbox?

Discussion in 'Programming' started by kabucek, Jan 16, 2009.

  1. #1
    hi
    can we setup hidden values to textbox?

    like options for select?

    thanks
     
    kabucek, Jan 16, 2009 IP
  2. Jeremy Morgan

    Jeremy Morgan Peon

    Messages:
    322
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want them hidden or not? Are you talking about auto populating them? If so, that's really easy.

    <input type="text" name="email" value="youraddress@something.com" />
    HTML:
    You can dynamically create the value attribute, to auto fill a form. This is how many editing tables are built.
     
    Jeremy Morgan, Jan 17, 2009 IP
  3. mrhrk01

    mrhrk01 Well-Known Member

    Messages:
    664
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    145
    #3
    <INPUT type="hidden" name="address" value ="youraddress" />

    Would be one example of a hidden field with a value specified to it. Ofcourse as mentioned before you can create a empty hidden field and dynamicaly populate it.

    Kind Regards
     
    mrhrk01, Jan 17, 2009 IP
  4. kabucek

    kabucek Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i want textbox where,
    customer types date:
    Jan 1
    and code will check this date with these options:


    "event1"= Feb 2
    "event3"= Mar 5
    "event4"= Jan 1

    and if Jan 1 was typed in the textbox code will know that its
    event4, and if Feb -event 1 and so on

    Thanks !
     
    kabucek, Jan 19, 2009 IP