can somebody who knows how to do this make sure that there isn't a bug. The code won't work because this $_POST['filename'] won't work because the textarea is called something else. Unless I am very wrong which is quite possible.