I have looked at different threads but couldn't find a proper solution.
I want to make a fake html file which fills a form automatically and submits when it is loaded by the browser.
The two input fields maks
and reciever
are filled by the values I have given, but I need to press submit.
And if possible it could be nice if the values of the input fields are invisible. Thank you.
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<script type="text/javascript">
function postReq() {
var frm = document.getElementById('post_req');
if (frm) {
frm.submit();
}
}
</script>
<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>
</html>