Button name passed through

Any idea how to accomplish this?


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;
}


The best resource for what you’re dealing with is a book called Bulletproof Ajax which also provides all of the [url=“http://bulletproofajax.com/code/”]code and examples from the book.

If you don’t want to learn such details of how to do it, code libraries such as jQuery help to dramatically simplify the code you need to write.