관리-도구
편집 파일: paymentsent.php
<?php $pid = $_GET['pid']; $amount = $_GET['eid']; require('process/config.php'); $sql ="SELECT * FROM quote WHERE id='$pid'"; $result = $conn->query($sql); $row = $result->fetch_assoc(); if($row) { $name = $row['name']; $email = $row['email']; $phone = $row['phone']; $to=$row['email']; } if($email != '') {?> <a href="https://mindbare.com/zamorin/razorpay/pay.php?pid=<?=$pid?>&eid=<?=$amount?>&name=<?=$name?>&email=<?=$email?>&phone=<?=$phone?>">payment link</a> <?php $url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo $url; $from = 'mindbare.com'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= "From: " . $from . "\r\n"; // Sender's E-mail $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message ='<table style="width:100%"> <tr><td>Name: '.$name.'</td></tr> <tr><td>Email: '.$email.'</td></tr> <tr><td>Email: '.$phone.'</td></tr> <tr><td : <a href="https://mindbare.com/zamorin/razorpay/pay.php?pid=<?=$pid?>&eid=<?=$amount?>&name=<?=$name?>&email=<?=$email?>&phone=<?=$phone?>">payment link</a> </td></tr> </table>'; if (@mail($to, $email, $message, $headers)) { //echo "<script>location.href='enquiry.php?p=6&m=ok';</script>"; //header("index.php?p=6&add=ok"); }else{ echo 'failed'; } } $conn->close(); ?>