Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
}
 
PREVIOUS NEXT
Tagged: #javascript #fly #form #submit
ADD COMMENT
Topic
Name
6+4 =