Files
approagency/resources/views/ap-form.blade.php
T
2025-09-10 15:28:46 +03:30

38 lines
1.2 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>redirect</title>
</head>
<body>
</body>
<script language="javascript" type="text/javascript">
function postRefId(refIdValue, mobile) {
console.log(refIdValue)
var form = document.createElement("form");
form.setAttribute("method", "POST");
form.setAttribute("action",
"https://asan.shaparak.ir");
form.setAttribute("target", "_self");
var hiddenField = document.createElement("input");
hiddenField.setAttribute("name", "RefId");
hiddenField.setAttribute("value", refIdValue);
form.appendChild(hiddenField);
var hiddenField = document.createElement("input");
hiddenField.setAttribute("name", "mobileap");
hiddenField.setAttribute("value", mobile);
form.appendChild(hiddenField);
document.body.appendChild(form);
form.submit();
document.body.removeChild(form);
}
postRefId(<?php echo json_encode($token); ?>,<?php echo json_encode($mobile); ?>);
</script>
</html>