Preview: pay-now.php
                Size: 3.81 KB
              
              
                
              
            
            /home/jambtst2015/public_html/giraffeng.com/pay-now.php
            <?php ob_start();
include("header.php"); ?>
<?php
 $pin_data=base64_decode($_GET['d']);
 $pin_arr=explode('/', $pin_data);
 if($_POST) {
	  $email=$_POST['email'];
	  $sql = "select * from user where email_id='".$email."'";
	  $qry = mysql_query($sql);
	   $row = mysql_num_rows($qry);
	   //echo $row;
	   
	   $row=0;
	   
if($row == 1){
	header("location: select-pin.php?error=2");
	exit();
}
else
 {
	 $pin_type_id=$_POST['pin_id'];
	 $pin_type=$_POST['pin_type'];
	 $pin_price=round($_POST['pin_price'],2);
	 $first_name=$_POST['first_name'];
	 $last_name=$_POST['last_name'];
	 $email=$_POST['email'];
	 $telephone=$_POST['telephone'];
	 $name=$first_name.' '.$last_name; 
	 $ins= mysql_query("INSERT INTO `tmp_user` (`pin_type_id`,`name`, `email_id`, `phone`) VALUES('".$pin_type_id."', '".$name."', '".$email."', '".$telephone."')");
	 $gid=mysql_insert_id();
	 
	 if($ins){ ?>
		<div class="loder"  style="display:block">
		<img src="images/loading.gif">
		</div>
		<form method="POST" id="upay_form" name="upay_form" action="https://cipg.stanbicibtcbank.com/MerchantServices/MakePayment.aspx" target="_top">
		<input type="hidden" name="mercId" value="00830">
		<input type="hidden" name="currCode" value="566">
		<input type="hidden" name="amt" value="<?= $pin_price?>">
		<input type="hidden" name="orderId" value="<?= $gid;?>">
		<input type="hidden" name="prod" value="Pin">
		<input type="hidden" name="email" value="target@yahoo.com">
		</form>
		<div class="clear"></div>
	 
 <?php }
 }
 }
?>
<script>
function formSub(){
	document.formID.submit();
	return true;
}
jq=jQuery.noConflict();
jq(document).ready(function(){
	jq("#formID").validationEngine();
	jq(window).load(function(){
		
		jq("#upay_form").submit();
	})
	
}) 
</script>
<section class="header_back_inner"></section>
<section class="about_section">
   <div class="container"> 
   
   		<h1>User Details</h1>
   
<?php  if(!$_POST) { ?>
      <form name="formID" method="post" action="" id="formID" class="contact_form reactive_box">
		 <input type="hidden" name="pin_id" value="<?= $pin_arr[0];?>">
		 <input type="hidden" name="pin_type" value="<?= $pin_arr[1];?>">
		 <input type="hidden" name="pin_price" value="<?= $pin_arr[2];?>">
		 <div class="contact_form_box">
			 <label for="first_name">First Name *</label>
			 <input  type="text" name="first_name" class="validate[required] selectfield require_select" maxlength="50" size="30">
			 <div class="clear"></div>
		 </div>
		 
		 <div class="contact_form_box">
			 <label for="last_name">Last Name *</label>
			 <input  type="text" name="last_name" class="validate[required] selectfield require_select" maxlength="50" size="30">
			 <div class="clear"></div>
		 </div>
		 
		 <div class="contact_form_box">
			 <label for="email">Email Address </label>
			 <input  type="text" name="email" class="selectfield require_select" maxlength="80" size="30">
             <div style="color:#C30;">[Note: Without proper email address we are unable to send a copy of your PIN.]</div>
			 <div class="clear"></div>
		 </div>
		 
		 <div class="contact_form_box">
			 <label for="telephone">Telephone Number</label>
			 <input  type="text" name="telephone" class="validate[required, custom[number]] selectfield require_select" maxlength="30" size="30">
			 <div class="clear"></div>
		 </div>
		 <input type="submit" value="Pay" class="submit_btn">
         
         <input type="button" name="back" id="back" class="submit_btn"  value="Back" onClick="window.history.back();" />
         
         <div class="clear"></div> 					
		<!--</div>-->	
	</form>	
<?php }?>
    </div>	
	</section>
		<?php include("footer.php"); ?>	
		<!--<script type="text/javascript"
src="https://CIPGURL/cipg/MerchantServices/UPaybutton.ashx?mercId=00995&CurrencyCode
=<crr_code>">-->
		<div class="clear"></div>
                                          Directory Contents
Dirs: 17 × Files: 104