javascript on the fly form submit
function post_to_url(path, method) {
method = method || "post";
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
document.body.appendChild(form);
form.submit();
}