If I have the contents of a file is $file_contents and I want to remove the text that starts off <form up to </form> is there a way to do this? I have an e-mail to web gateway set up and I would like to know if I am able to remove the "E-mail this web page" form when the file is indeed e-mailed. Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php