OK OK OK, make it complicated if you really want to!
If you are using email submission it MAY work with Internet Explorer, but hardly with any other browser.
Originally Posted by muzickid92
Instead of looking into cgi scripts, learn php (Some would say that they are the same, but php is more specific and not browser dependent).
The construct "txt = txt + ...." is probably not the most efficient one. See the previous post, which also has some simplifications using loops instead of repetitions. I would say that doing most of this on the server side would be much easier, especially for debugging.
However, doing this the "right way" is not a one day job.