55ok

Mini

Direktori : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/
Upload File :
Current File : /home/u307599615/domains/makeoverbyaaliyabarber.com/public_html/admin/add_package.php

<?php
ob_start();
include('connection.inc.php');
include('sidebar.inc.php');
include('header.inc.php');



if (isset($_POST['submit'])) {

    $Package = $_POST['Package'];
    $title = $_POST['title'];
    $mac = $_POST['mac'];
    $mac_price = $_POST['mac_price'];
    $hd_airbrush = $_POST['hd_airbrush'];
    $hd_airbrush_price = $_POST['hd_airbrush_price'];
    $Celebrity = $_POST['Celebrity'];
    $Celebrity_price = $_POST['Celebrity_price'];
    $Celebrity_silicon = $_POST['Celebrity_silicon'];
    $Celebrity_silicon_price = $_POST['Celebrity_silicon_price'];
    $message = $_POST['message'];

    $sql = "INSERT INTO `package`(`Package`, `title`,`mac`, `mac_price`, `hd_airbrush`, `hd_airbrush_price`, `Celebrity`, `Celebrity_price`, `Celebrity_silicon`, `Celebrity_silicon_price`, `message`) VALUES ('$Package','$title','$mac','$mac_price','$hd_airbrush','$hd_airbrush_price','$Celebrity','$Celebrity_price','$Celebrity_silicon','$Celebrity_silicon_price','$message')";
    $query = mysqli_query($con, $sql) or die("error");
    if ($query) {
        header('location:packages.php');
    }
}

?>

<form method="POST" enctype="multipart/form-data">
    <div class="form-group">
        <label for="exampleInputEmail1">Package</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="Package" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Title</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="title" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">MAC</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="mac" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">MAC Price</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="mac_price" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Hd/Airbrush</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="hd_airbrush" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Hd/Airbrush Price</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="hd_airbrush_price" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Celebrity</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="Celebrity" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Celebrity Price</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="Celebrity_price" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Celebrity Silicon</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="Celebrity_silicon" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Celebrity Silicon Price</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="Celebrity_silicon_price" >
    </div>
    <div class="form-group">
        <label for="exampleInputEmail1">Message</label>
        <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="message" >
    </div>
    <button type="submit" class="btn btn-primary" name="submit" value="submit">Submit</button>
</form>

<?php
include('footer.inc.php');
ob_flush();
?>

Zerion Mini 1.0