<?php 
$bol = explode(' / ',$_POST["Card_Expiry"]); $ay=$bol[0]; $yil=$bol[1];
$email = $fmail;
$tutar = $_POST["Total"];
if($_POST["Installment"]=="1"){
	$taksit="";
}else{
	$taksit = $_POST["Installment"];
}
$order_id = rand(1000,999999);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Garanti VPos</title>
</head>
<script src="//code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script>
jQuery(document).ready(function(){
	document.getElementById("form1").submit();
});
</script>
<body>
<form name="form1" id="form1" method="post" action="<?php echo $_POST['aurl']?>/deppo/tools/vpos/garanti/payment.php" style="display:none;">
  <table border="0">
    <tr>
      <th scope="row">Kart No</th>
      <td>
      <input type="text" name="kart_numarasi" id="kart_numarasi" value="<?php echo str_replace(' ','',$_POST["Card_Number"])?>"></td>
    </tr>
    <tr>
      <th scope="row">SKT (AA/YY)</th>
      <td>
      <input type="text" name="kart_sonkullanma_tarihi_ay" id="kart_sonkullanma_tarihi_ay" value="<?php echo $ay?>">
      
      /
      <input type="text" name="kart_sonkullanma_tarihi_yil" id="kart_sonkullanma_tarihi_yil" value="<?php echo substr($yil,-2);?>"></td>
    </tr>
    <tr>
      <th scope="row">CVV</th>
      <td>
      <input type="text" name="kart_guvenlik_kodu" id="kart_guvenlik_kodu" value="<?php echo $_POST["Card_Cvv"]?>"></td>
    </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <td><button type="submit" name="button" id="button" value="">Ödeme Yap</button></td>
    </tr>
  </table>
  <input type="hidden" name="aurl" value="<?php echo $_POST['aurl']?>">
<input type="hidden" name="burl" value="<?php echo $_POST['burl']?>">
  <input type="hidden" name="tutar" value="<?php echo $tutar ?>">
  <input type="hidden" name="email" value="<?php echo $email ?>">
  <input type="hidden" name="taksit" value="<?php echo $taksit ?>">
  <input type="hidden" name="order_id" value="<?php echo $order_id ?>">
</form>
</body>
</html>