Example #1
0
<?php

require_once 'include/header.php';
require_once 'personalModel.php';
$userModel = new personal();
$member_id = $_GET['id'];
if (isset($_POST['submit'])) {
    $userModel->member_id = $_POST['member_id'];
    $tmp = $_FILES['file2']['tmp_name'];
    move_uploaded_file($tmp, "images/personal/gallery/" . $_FILES['file2']['name']);
    $userModel->picture = $_FILES['file2']['name'];
    $x = implode(' ', $_POST['category']);
    $userModel->category = $x;
    $userModel->create_pic();
    header("location:create_personal2.php?id={$userModel->member_id}");
}
?>
<body>
    <div id="box_wrapper">
        <section id="mainslider">
            <div class="flexslider">
                <ul class="slides">
                    <li>
                        <div class="slide_overlay">
                            <img src="images/personal/flex_slide03.jpg" alt="">                      
                        </div>
                    </li>   
                </ul>
            </div>
        </section>