<?php 
error_reporting(0);
session_start();
if($_GET['suc']=="suc"){
  $to = "archakam.p@gmail.com,farooq.pasha706@gmail.com";

$subject = "wedding priest";

$message ='<table height="40%" width="60%" align="" border="10" cellpadding="5" cellspacing="5" bgcolor="#FFCC99">

                      <tbody>
					  					
                        <tr>

                          <td width="38%" align="center" class="cntnt"><span class="style9">Name</span></td>

                          <td class="cntnt" width="9%" align="center">:</td>

                          <td width="53%" height="30">'.$_SESSION['fname'].'</td>

                        </tr>
						  <tr>

                          <td width="38%" align="center" class="cntnt"><span class="style9">Email</span></td>

                          <td class="cntnt" width="9%" align="center">:</td>

                          <td width="53%" height="30">'.$_SESSION['email'].'</td>

                        </tr>

						<tr>

                          <td class="cntnt" align="center"><span class="style9">Phone Number</span></td>

                          <td class="cntnt" align="center">:</td>

                          <td height="30">'.$_SESSION['pnumber'].'</td>

                        </tr>

						 <tr>

                          <td class="cntnt" align="center"><span class="style9">Amount</span></td>

                          <td class="cntnt" align="center">:</td>

                          <td height="30">$'.number_format($_SESSION['amount'],2).'</td>

                        </tr>
			         </tbody>

                    </table>';

	//echo $message;exit;



// Always set content-type when sending HTML email

$headers = "MIME-Version: 1.0" . "\r\n";

$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

$abc="Payment";

// More headers

$headers .= 'From: '.$abc.  "\r\n";

//$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
}
header("location:thanqu.php");
?>
<script > 
  window.location.replace("thanqu.php");
</script>