Skip to content

Instantly share code, notes, and snippets.

@gigorok
Created September 28, 2012 07:58
Show Gist options
  • Save gigorok/3798538 to your computer and use it in GitHub Desktop.
Save gigorok/3798538 to your computer and use it in GitHub Desktop.
HTML: Autosubmit form through POST request
<form name="myform">
<input type="hidden" name="var1" value="5" />
</form>
<script type="text/javascript">
document.myform.submit();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment