<?php /** * Created by PhpStorm. * User: VeR * Date: 05.02.2017 * Time: 17:19 */ include "classGames.php"; $in=new APIGames(); if($in->checkPay()){ $in->goodPay(); header('location: /'); }else{ if(isset($_POST['money'])){ $money=$_POST['money']*5; $q=$in->initPayment($money,$_POST['money'],$_COOKIE['id']); } echo'<form method="post"> Покупка голды(1g = 5DS):<br/> <input type="tel" name="money" > <br/> <input type="submit" value"pay"> </form> '; } ?>