Send post-variable with javascript?
html, javascript
Solution
The simplest way is to just have a form in your page:
<form method="POST" action="hanteraTaBortAnvandare.php" id="DeleteUserForm">
<input type="hidden" name="id" value="10" />
</form>
Then you just post the form:
document.getElementById("DeleteUserForm").submit();
Problem
Is it possible to send post-variables with javascript? I want `id` to be sent with post, not get. ``` window.location.href="hanteraTaBortAnvandare.php?id=10"; ```