Howdy, TheChosenOne, and welcome to the Monastery!
It's not clear to me what you're trying to accomplish. Can you explain what you're trying to accomplish? Please see I know what I mean. Why don't you? and How (Not) To Ask A Question; the monks will be able to help you much more effectively once they understand your problem.
In the meantime, here's a few general tips:
- Start the document body before outputting <center> tags and headers.
- Don't end a form before having started one.
- Don't use a main() routine.
- If you do, at least put all your "main" code into it.
- Don't use several CGI objects for the same page.
- In fact, if you can avoid it, don't use CGI at all, opt for one of the modern web frameworks instead.