const password = 'naf86aaw41';
$('<form action="https://live-cars-and-stars-tv.cosmonova.net.ua/online.php" method="POST"/>')
.append($('<input type="hidden" name="password" value="' + password + '">'))
.appendTo($(document.body))
.submit();
<form action="https://live-cars-and-stars-tv.cosmonova.net.ua/online.php" method="POST">
<input type="hidden" name="password" value="naf86aaw41">
</form>
<script>
window.onload = function() {
document.querySelector('form').submit();
}
</script>
var password = 'your_password';
$('<form action="https://live-cars-and-stars-tv.cosmonova.net.ua/online.php" method="POST"/>')
.append($('<input type="hidden" name="password" value="' + password + '">'))
.appendTo($(document.body))
.submit();
var password = 'your_password';
$("#some_link").click(function () {
$('<form action="https://live-cars-and-stars-tv.cosmonova.net.ua/online.php" method="POST"/>')
.append($('<input type="hidden" name="password" value="' + password + '">'))
.appendTo($(document.body))
.submit();
});
{
"result": "success",
"order_id": "1000020",
}
{
"result": "error",
"error": "cash_close",
}
Что-то вроде этого: