Thanks. I was doing everything except selecting the textarea tag. That clears up the textarea remnant problem and most of the PHP tag problem in the validation section. It still misses the opening "<" before "?php" but I can live with that. It's an easy fix.