redisplaying content of a 'textarea' on a form after an error

Discussion in 'HTML' started by Sharon Lee, Jan 4, 2004.

  1. Sharon Lee

    Sharon Lee Guest

    I can't get the textarea of a form to redisplay if there has been an
    error in another field.

    I am using this code:

    <td><textarea name = "contactmessage" value = "$contactmessage"
    cols="45" rows="10"></textarea></td>

    I have checked the content of $contactmessage before this code and the
    content is there. (I am using php)

    Can anyone see what I might be doing wrong?

    Thanks
     
    Sharon Lee, Jan 4, 2004
    #1
    1. Advertising

  2. Sharon Lee wrote:
    > I can't get the textarea of a form to redisplay if there has been an
    > error in another field.
    >
    > <td><textarea name = "contactmessage" value = "$contactmessage"
    > cols="45" rows="10"></textarea></td>


    <textarea name="contactmessage" cols="45"
    rows="10">$contactmessage</textarea>
     
    Leif K-Brooks, Jan 4, 2004
    #2
    1. Advertising

  3. "Sharon Lee" <> wrote in message
    news:...
    > I can't get the textarea of a form to redisplay if there has been an
    > error in another field.
    >
    > I am using this code:
    >
    > <td><textarea name = "contactmessage" value = "$contactmessage"
    > cols="45" rows="10"></textarea></td>
    >

    <textarea> tag hasn't got a value attribute. You have to do this:

    <textarea name = "contactmessage" cols="45"
    rows="10">$contactmessage</textarea>
     
    Fredo Vincentis, Jan 4, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miles Davenport
    Replies:
    1
    Views:
    6,809
    Bryce
    Oct 8, 2004
  2. hazz
    Replies:
    6
    Views:
    49,635
    SkyUCHC
    Jun 9, 2010
  3. Matt
    Replies:
    2
    Views:
    396
  4. Augustus
    Replies:
    1
    Views:
    361
    Ken Schaefer
    Sep 10, 2003
  5. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    336
    Anthony Jones
    Feb 5, 2006
Loading...

Share This Page