Any idea how to accomplish this?

Code JavaScript:
requestform.onsubmit = function ()
	/* So what to do here, thats the question
	- I want to get the data / NAME of a button that has been pressed, if such function exists.
	- Then I need to use AJAX to send the form data to some file that probably doesnt exist yet.
	- Give the PHP a response, and echo the response to replace the buttons
	return false;