Unfortunately, the only way to achive this is to redirect to another page, do the processing then redirect back to the main page.