ok

Mini Shell

Direktori : /home1/indocan/public_html/admin/
Upload File :
Current File : //home1/indocan/public_html/admin/test.php

<?php
 if(isset($_POST['add'])){
    require_once 'conn.php';
        $designation=$_POST['designation'];
        $name=$_POST['name'];
        $email=$_POST['email'];
        $age=$_POST['age'];
        $dob=$_POST['dob'];
        $cnumber=$_POST['cnumber'];
        $anumber=$_POST['anumber'];
        $wnumber=$_POST['wnumber'];
        mysqli_query($conn, "INSERT INTO `applied` VALUES('', '$designation','$name','$email','$age','$dob','$cnumber','$anumber','$wnumber')") or die();
        
        $to = 'rajesh@relaxplzz.com';
$subject = "Hello! This is  Enquiry email From Website";
$message = '
<html>
<body bgcolor="#DCEEFC">
<h1 style="color:#993; text-align:center;">From  Website- Enquiry </h1>
<table align="center" cellpadding="10" border="1">
<tr><td>Name</td><td>'.$name.'</td></tr>
<tr><td>Email</td><td>'.$email.'</td></tr>
<tr><td>Designation</td><td>'.$desgnation.'</td></tr>
<tr><td>Age</td><td>'.$age.'</td></tr>
<tr><td>Date of Birth</td><td>'.$dob.'</td></tr>
<tr><td>Contact Number</td><td>'.$cnumber.'</td></tr>
<tr><td>Alternate Number</td><td>'.$anumber.'</td></tr>
<tr><td>Whatsapp Number</td><td>'.$wnumber.'</td></tr>
</table>
</body></html>';
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: '.$name.' <'.$email.'>' . "\r\n";


mail($to, $subject, $message, $headers);
echo "<script>alert('Record Update Successful')</script>";
        } 
 ?>

Zerion Mini Shell 1.0