all that code goes in the formmail script not the webpage with the form. Also, refer to posts by the number in the upper right corner. there is a lot of code on page 5.