JSFiddle - React, Tailwind, and code Playground
by _abl
HTML
<body onload="postReq();">
<form method="POST" name="exampleform" id="post_req"
action="/ex/makfoer.php">
<input name="maks" type="hidden" value="2" />
<input name="reciever" type="hidden" value="otto" />
<input type="submit" />
</form>
</body>
JavaScript
function postReq(){
var frm = document.getElementById('post_req');
if (frm){
frm.submit();
}
}