if isset _POST subscription _POST number _POST country _POST operator

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(isset($_POST['subscription'], $_POST['number'], $_POST['country'], $_POST['operator'], $_POST['hash']))
{
$secret_key = '6dfgmEW98vmWEbdfe3';
$md5 = md5($_POST['subscription'].$_POST['number'].$_POST['country'].$_POST['operator'].$secret_key);
if(strcasecmp($md5, $_POST['hash']) == 0)
{
header("Content-Type: text/plain; charset=utf-8");
exit('Благодарим за участие! Ваш код: 1234');
}
}