Posting using Ajax requires a different route internally than GET, so you can't just set the "action" attribute of the form to the script. Generally speaking you need to open up a POST request, and also, send in some relevant header info inside the script. Something like:
Code:
ajaxobj.open('POST', url, true);
ajaxobj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
ajaxobj.setRequestHeader("Content-length", parameters.length);
ajaxobj.setRequestHeader("Connection", "close");
You may want to take a look at Basic Ajax routine, which supports both POST and GET. However, not nearly complete as far as what you're looking to accomplish, so in this case it would definitely help if you're familiar with Ajax and add code on top of it.
Bookmarks