RE: How do you make the contents of a text box remain, even after clicking send, with errors ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Many thanks Jeff, Paul and Mike,

The solution worked - much appreciated.

Chris.

> -----Original Message-----
> From: php-objects@xxxxxxxxxxxxxxx [mailto:php-
> objects@xxxxxxxxxxxxxxx] On Behalf Of Jeff
Bennett
> Sent: Sunday, February 12, 2006 6:40 PM
> To: php-objects@xxxxxxxxxxxxxxx
> Subject: Re:  How do you make the
contents
> of a text box remain, even after clicking send,
with errors ?
> 
> You want to move the textarea contents text to
between the
> <textarea>
> and </textarea> tags:
> 
> <TEXTAREA style="FONT-SIZE: 13px;"
> name="comments"
> rows="7" cols="21" value="comments" type="text"
> maxLength="32" size="14"
> onchange="Form1.send.focus()"/>
> <?php echo $_POST['comments']; ?>
> </TEXTAREA>
> 
> -jmb
> 
> Chris wrote:
> 
> >At the moment, the visitor inputs a load of
text
> >into the comments box, but if they click send
and
> >there's errors in other fields on the page, the
> >comments box goes blank and they have to start
all
> >over again ;-(  Trying to get it so that the
> >comments box stays complete).
> >
> >Do I have to refer to the field or field name
> >elsewhere in the code please?  Getting a bit
stuck
> >on this ;-(
> >
> >Any help appreciated.
> >
> >Chris
> >
> ><TEXTAREA style="FONT-SIZE: 13px;"
> name="comments"
> >rows="7" cols="21" value="comments" type="text"
> >value="<?php echo $_POST['comments']; ?>"
> >maxLength="32" size="14"
> >onchange="Form1.send.focus()"/>
> ></TEXTAREA>
> >



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux