value attributes in form fileds are messing up my form

Discussion in 'HTML & Website Design' started by rainer, May 17, 2007.

  1. #1
    I got a form (test) on http://go-lanka.org/mail/1.html. As you can see the value attribute [output...] shows inside the form fields.
    If I get rid of value or change it to value="" it works but it deletes all inputs so far if the form is re-displayed if there is an error.
    This means I want to keep it but it shouldn't be displayed on the form the user sees.
    What to do?
    any help highly appreciated
     
    rainer, May 17, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    I'm not at all sure what it is you're trying to do, but the value attribute is for inserting a default value. If you don't want a default value, don't use the attribute.

    cheers,

    gary
     
    kk5st, May 17, 2007 IP