I have a page called main.asp

Its just a form where i want the user to enter in some information, and than click the submit button. When they click the submit button, i want the asp code on main.asp to be executed. My problem is this:

When i load up main.asp .. the asp code gets executed automatically. What do i need to do in order to just have the asp code to be executed only when the submit button is clicked.

Thanks in advance