>Yikes. How can I post code so the formatting is preserved?
Wrap it with < PRE> code goes here... < /PRE> tags
the PRE tag also allows you to post html tags without them being interpretted as markup commands (unless they are pre tags themselves and then the UT gets itself all sorts of confused *g*)