I think I agree with Paul :).

I used to use the print "" statement before I realised that I could use the print header(); to output HTML which by default return "Content-Type: text/html".

Anyway, this script looks great!