Skip to content

Instantly share code, notes, and snippets.

@ironicmoka
Forked from gigorok/gist:3798538
Created December 16, 2021 17:29
Show Gist options
  • Save ironicmoka/44b1b8d0b4aed341351bb4e2e2c17e39 to your computer and use it in GitHub Desktop.
Save ironicmoka/44b1b8d0b4aed341351bb4e2e2c17e39 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