ok

Mini Shell

Direktori : /home1/indocan/public_html/
Upload File :
Current File : //home1/indocan/public_html/apply-jobs.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` (`designation`, `name`, `email`, `age`, `date`, `contactno`, `alterno`, `whatsappno`) VALUES('$designation','$name','$email','$age','$dob','$cnumber','$anumber','$wnumber')") or die();
        
        $to = 'info@indocanoverseas.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>'.$designation.'</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>";
        } 
 ?>
<!DOCTYPE html>
<html lang="en">
<?php include("head.php")?>

<body>
    <div class="boxed_wrapper">

        <?php include("header.php")?>


        <!-- Page Title -->
        <section class="page-title" style="background-image: url(assets/images/background/page-title.jpg);">
            <div class="auto-container">
                <div class="content-box clearfix">
                    <div class="title centred">
                        <h6>Get in Touch</h6>
                        <h1>You've Come to The Right Place</h1>
                    </div>
                    <ul class="bread-crumb clearfix">
                        <li><a href="index.php">Home</a></li>
                        <li>Apply Job</li>
                    </ul>
                </div>
            </div>
        </section>
        <!-- End Page Title -->


        <section class="contact-style-two bg-color-1">
            <div class="auto-container">
                <div class="row clearfix">

                    <div class="col-12 form-column">
                        <div class="content_block_six">
                            <div class="content-box">
                                <div class="form-inner">
                                    <form method="post" action="" id="contact-form" class="default-form"
                                        novalidate="novalidate">
                                        <div class="row clearfix">
                                            <div class="col-12">
                                                <!-- <h4 class="my-3">Personal</h4> -->
                                            </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12 form-group">
                                                <input type="text" name="name" placeholder="Name" required=""
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12 form-group">
                                                <input type="email" name="email" placeholder="Email Addres" required=""
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <input type="text" name="age" required="" placeholder="Enter your Age"
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <input type="date" name="dob" required="" placeholder=""
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <input type="tel" name="cnumber" required="" placeholder="Contact Number"
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <input type="tel" name="anumber" required=""
                                                    placeholder="Alternate Contact Number" aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <input type="tel" name="wnumber" required="" placeholder="Whatsapp Number"
                                                    aria-required="true">
                                            </div>
                                            <div class="col-lg-6 col-md-12 col-sm-12 form-group">
                                                <select class="form-select" name="designation" aria-label="Default select example">
                                                    <option selected>Choose Category</option>
                                                    <?php
                                                    require_once ('conn.php');
                                                    $sql1 = "SELECT * FROM jobs";
                                                    $result = mysqli_query($conn, $sql1);
                                                    while ($result4 = mysqli_fetch_assoc($result)) { ?>
                                                    <option value="<?php echo $result4['designation']; ?>"><?php echo $result4['designation']; ?></option><?php } ?>

                                                </select>
                                            </div>
                                            <div class="col text-center form-group message-btn">
                                                <button class="theme-btn btn-two" type="submit"
                                                    name="add">Submit Now<i class="flaticon-next"></i></button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>


        <?php include("footer.php")?>

    </div>
</body>

</html>

Zerion Mini Shell 1.0