<!doctype html>
<html lang="en">
 
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css">
    <link href="assets/vendor/fonts/circular-std/style.css" rel="stylesheet">
    <link rel="stylesheet" href="assets/libs/css/style.css">
    <link rel="stylesheet" href="assets/vendor/fonts/fontawesome/css/fontawesome-all.css">
    <link rel="stylesheet" href="assets/vendor/charts/chartist-bundle/chartist.css">
    <link rel="stylesheet" href="assets/vendor/charts/morris-bundle/morris.css">
    <link rel="stylesheet" href="assets/vendor/fonts/material-design-iconic-font/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="assets/vendor/charts/c3charts/c3.css">
    <link rel="stylesheet" href="assets/vendor/fonts/flag-icon-css/flag-icon.min.css">
    <title>aaradhya safety nets in chennai,tamil nadu-9177377345, 9177533567</title>
</head>

<body>
    <!-- ============================================================== -->
    <!-- main wrapper -->
    <!-- ============================================================== -->
    <div class="dashboard-main-wrapper">
        <!-- ============================================================== -->
        <!-- navbar -->
        <!-- ============================================================== -->
        <?php
        include("sidebar.php");
        ?>
        <!-- ============================================================== -->
        <!-- end left sidebar -->
        <!-- ============================================================== -->
        <!-- ============================================================== -->
        <!-- wrapper  -->
        <!-- ============================================================== -->
        <div class="dashboard-wrapper">
            <div class="dashboard-ecommerce">
                <div class="container-fluid dashboard-content ">
                <div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
                            <div class="card">
                                <h5 class="card-header">Enter Data</h5>
                                <div class="card-body">
                                    <form action="in.php" method="POST" enctype="multipart/form-data">
                                        
                                        <!-- <div class="form-group">
                                            <label for="inputtext">Product Name</label>
                                            <input id="inputtext" type="text" name="name"  required="" placeholder="Enter" autocomplete="off" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label for="inputtext">Product Size</label>
                                            <input id="inputtextl" type="text" name="size"  required="" placeholder="Enter" autocomplete="off" class="form-control">
                                        </div>
                                        
                                        <div class="form-group">
                                            <label for="inputtext">Product Cost</label>
                                            <input id="inputtextl" type="text" name="cost"  required="" placeholder="Enter " autocomplete="off" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label for="inputtext">Quantity</label>
                                            <input id="inputtextl" type="text" name="quantity"  required="" placeholder="Enter" autocomplete="off" class="form-control">
                                        </div> -->
                                        <div class="form-group">
                                            <label for="inputtext">Image</label>
                                            <input id="inputtextl" type="file" name="image" required="" placeholder="Enter" autocomplete="off" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label for="inputtext">Heading</label>
                                            <input id="inputtext" type="text" name="heading"  required="" placeholder="Enter" autocomplete="off" class="form-control">
                                        </div>


                                        <div class=" form-group">
                                        <label for="inputtext">Text Area</label>
                                    <textarea name="message" class="form-control" placeholder="Write here message"></textarea>
                                </div>
                                        
                                       
                                        <div class="row">
                                           
                                            <div class="col-sm-6 pl-0">
                                                <p class="text-right">
                                                    <button type="submit" name="submit" class="btn btn-space btn-primary" >Upload</button>
                                                    <!-- <button class="btn btn-space btn-secondary">Cancel</button> -->
                                                </p>
                                            </div>
                                            
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
</div>
</div>
</div>
<script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script>
    <!-- bootstap bundle js -->
    <script src="assets/vendor/bootstrap/js/bootstrap.bundle.js"></script>
    <!-- slimscroll js -->
    <script src="assets/vendor/slimscroll/jquery.slimscroll.js"></script>
    <!-- main js -->
    <script src="assets/libs/js/main-js.js"></script>
    <!-- chart chartist js -->
    <script src="assets/vendor/charts/chartist-bundle/chartist.min.js"></script>
    <!-- sparkline js -->
    <script src="assets/vendor/charts/sparkline/jquery.sparkline.js"></script>
    <!-- morris js -->
    <script src="assets/vendor/charts/morris-bundle/raphael.min.js"></script>
    <script src="assets/vendor/charts/morris-bundle/morris.js"></script>
    <!-- chart c3 js -->
    <script src="assets/vendor/charts/c3charts/c3.min.js"></script>
    <script src="assets/vendor/charts/c3charts/d3-5.4.0.min.js"></script>
    <script src="assets/vendor/charts/c3charts/C3chartjs.js"></script>
    <script src="assets/libs/js/dashboard-ecommerce.js"></script>
</body>
 
</html>

<?php 
$filename = $_FILES["image"]["name"];
$tempname = $_FILES["image"]["tmp_name"];
$folder = "uploads/".$filename;
echo $folder;
move_uploaded_file($tempname, $folder);
?>