Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $foto = $_FILES['foto'];
- $jurusan = $_POST['jurusan'];
- $alamat = $_POST['alamat'];
- $Goldar = $_POST['Goldar'];
- $Nama_ibu = $_POST['Nama_ibu'];
- if(!empty($foto) AND $foto['error'] == 0){
- $path = './Assets/images/';
- $upload = move_uploaded_file($foto['tmp_foto'], $path . $foto['name'] );
- if(!$upload){
- flash('error', "upload file gagal");
- header('location: index.php');
- }
- $file = $foto['name'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement