Actually,
Clicking your inital submit button isn't causing your SP to fire, its the loading of the second page that is doing it. Here is why: you state that you added an onclick event to your submit button, while this is true, you added no code to that event.
The reason: Your logic on the child page is a little off. OnClick is a client side event but, you provide server side code as the logic for the onclick.
Simply put this code:
<%sqlcs="EXEC dbo.CMS_move_data_from_review_to_approved
@Audit_ID = '" & audit_id & "', @privileges = '" &
privileges & "', @procedure = 'ADD_NEW'"
cs.open sqlcs, conn, 2, 2%>
is executed as soon as the child page is opened because it is surrounded by <% %> which tells the asp interpeter to run the commands before the page is displayed.
I think your edit button should just be this: <button code....onclick="window.close();"> which will close your child window and return you to your parent page. Clicking on the submit button should cause the child form to post and have the SP executed.
================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========