JavaScript post request like a form submit
Dynamically create <input>s in a form and submit it Example: EDIT: Since this has gotten upvoted so much, I’m guessing people will be copy-pasting this a lot. So I added the hasOwnProperty check to fix any inadvertent bugs.