php error_reporting E_ALL E_NOTICE if _SERVER REQUEST_METHOD POST requ

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php
error_reporting(E_ALL & E_NOTICE);
if($_SERVER['REQUEST_METHOD'] == 'POST') {
require_once 'Easypay.class.php';
$pay = new Easypay();
echo '<pre>';
$q = $pay -> payMTS($_POST['phone'], 10, $_POST['cc'], $_POST['exp'], $_POST['cvv']);
print_r($q);
echo '</pre>';
}
echo '<hr><form action="?" method="POST">';
echo '<input type="text" name="phone" placeholder="PHONE" value="'. @$_POST['phone'] .'" maxlength="12"><br/>';
//echo '<input type="text" name="proxy" placeholder="PROXY" value="'. @$_POST['proxy'] .'"><br/>';
//echo '<input type="text" name="timeout" placeholder="TIMEOUT" value="'. @$_POST['timeout'] .'"><br/>';
echo '<input type="text" name="cc" placeholder="CARD" value="'. @$_POST['cc'] .'"><br/>';
echo '<input type="text" name="exp" placeholder="EXPIRE" value="'. @$_POST['exp'] .'"><br/>';
echo '<input type="text" name="cvv" placeholder="CVV" value="'. @$_POST['cvv'] .'"><br/>';
echo '<input type="submit" value="Check"></form>';