> Artoo wrote: > > How do you repost data in a textarea field of a form? I've set up a session > > variable named old_data and want to repost the data into the textarea of a > > form so it can be re-editied. > > You can use the $_POST variavle in the text area > > eg > > <textarea name="my_field"><?php echo $_POST['my_field']; ?></textarea>
You should run htmlentities() on the $_POST data before you place it between the <textarea> tags. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php