MMCT TEAM
Server IP : 45.113.226.95  /  Your IP : 216.73.216.239
Web Server : LiteSpeed
System : Linux bharat.hostitbro.com 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User : digita21 ( 1701)
PHP Version : 8.3.30
Disable Function : mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0750) :  /home2/digita21/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/digita21/public_html/apply-submit.php
<?php

if(isset($_POST['submit'])){
    $loanamount = $_POST['loanamount'];
    $income = $_POST['income'];
    $purposeloan = $_POST['purposeloan'];
    $loanyears = $_POST['loanyears'];
    $yourname = $_POST['yourname'];
    $youremail = $_POST['youremail'];
    $phonenumber = $_POST['phonenumber'];
    $maritalstatus = $_POST['maritalstatus'];
    $birthdate = $_POST['birthdate'];
    $taxpayer = $_POST['taxpayer'];
    $address = $_POST['address'];
    $employer_status = $_POST['employer_status'];

    // Specify multiple recipients
    $to = "pramodkushwaha220@gmail.com, info@digitalpaisabazaar.com";
    $subject = "Mail from Digital Paisa Bazaar";
    
    // Create the table formatted message
    $text = "
    <html>
    <head>
    <title>Enquiry Details</title>
    </head>
    <body>
    <table border='1' cellpadding='10' cellspacing='0'>
        <tr>
            <th style='text-align:left;'>Field</th>
            <th style='text-align:left;'>Details</th>
        </tr>
        <tr>
            <td>Loan Amount</td>
            <td>".$loanamount."</td>
        </tr>
        <tr>
            <td>Income</td>
            <td>".$income."</td>
        </tr>
        <tr>
            <td>Purpose of Loan</td>
            <td>".$purposeloan."</td>
        </tr>
        <tr>
            <td>Loan Years</td>
            <td>".$loanyears."</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>".$yourname."</td>
        </tr>
        <tr>
            <td>Email</td>
            <td>".$youremail."</td>
        </tr>
        <tr>
            <td>Phone Number</td>
            <td>".$phonenumber."</td>
        </tr>
        <tr>
            <td>Marital Status</td>
            <td>".$maritalstatus."</td>
        </tr>
        <tr>
            <td>Birth Date</td>
            <td>".$birthdate."</td>
        </tr>
        <tr>
            <td>Taxpayer Status</td>
            <td>".$taxpayer."</td>
        </tr>
        <tr>
            <td>Address</td>
            <td>".$address."</td>
        </tr>
        <tr>
            <td>Employer Status</td>
            <td>".$employer_status."</td>
        </tr>
    </table>
    </body>
    </html>";

    // Correct headers for HTML email
    $headers = "From: ".$youremail."\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=UTF-8\r\n";

    // Send mail
    if(mail($to, $subject, $text, $headers)){
        echo '<script>
                alert("Enquiry Success");
                window.location.href = "index.php";
              </script>';
    } else {
        echo "Mail not sent";
    }
}

?>

MMCT - 2023