[snip] I have a button which I want to add a function to, so that when it is clicked, the data from one <textarea> will be copied to another <textarea> Which event handler of the button should I use and hoe should I construct the function? [/snip] Both textareas on the same page? Want to do the copy without making a trip to the server? I think you want JavaScript for this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php