Does anyone have a suggestion on how to make a form input field of the
type <textarea name="comment"> content </textarea> "sticky" . I have not seen the 'value' attrbute used with <textarea> and it doesn't work with the normal solution of setting value="<?php echo $comment ; ?>" which is what I
first tried.
[RESOLVED] Making a textarea sticky
Just put the desired content between the tags:
textarea name="example" cols="60" rows="5"><?php
if(isset($_POST['example']))
{
echo htmlentities($_POST['example'], ENT_QUOTES);
}
?></textarea>
Again, I am in your debt NogDog. Thanks very much.
Sig
Note to whichever moderator moved this to the Client-Side forum, I moved this back here as it deals with server-side PHP code.