JF
Size: a a a
JF
CV
CV
CV
JF
JF
JF
CV
JF
<body>
<form method="post"><input type="submit" name="tt1">
</form>
<script>
function send() {
// var response = fetch('/test.php?tt1=1');
var response = fetch('/user/test.php', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({"message":"test","status":status})
});
// }
}
</script>
</body>
<?php
echo $_POST;
$data = json_decode(file_get_contents('php://input'), true);
// print_r($data);
echo('<br>post= ');
echo $data["message"];
if ($_POST['tt1']) {
echo "<script>
var c = confirm(\"message\");
if (c) send();
</script>";
}
JF
JF
JF
CV
JF
CV