| [help] Dah nyari kemana2, tpi ga nemu, mulai dari change permissions sampe yg lain2 dah ane coba... tetap az ngulah..
Gini masta Saat submit form, ada 403 Forbidden, sebelumnya di localhost baik2 az.. stelah di hosting jadi forbidden.. help masta..
ne scriptnya..
<?php session_start(); if(!isset($_SESSION['username']) and !isset($_SESSION['password'])){ header ('location: login.php'); } else { include "../part/connect.php"; include "atas.php";
$ket = $_POST['keterangan']; $keyword = $_POST['keyword']; $judul = $_POST['judul']; $kategori = $_POST['kategori']; $author = $_POST['author']; $desk = $_POST['deskripsi']; $isi = $_POST['isi']; $tgl = $_POST['jam']; $tahun = $_POST['tahun']; $link1 = preg_replace('~[\\\\/:*?"<>=|]~', "-", $judul); $link15 = preg_replace('/[^a-zA-Z0-9\']/', '-', $link1); $link16 = str_replace("@", '-', $link15); $ubahkeyword= str_replace(" ", ", ", $keyword);
$query = "insert into submit set tahun ='$tahun', nama='$author', link='$link16', keterangan='$ket', keyword='$ubahkeyword', judul='$judul', kategori='$kategori', isi='$isi', jam='$tgl', deskripsi='$deskripsi'"; if( mysql_query($query)){ ?> <div id="rightContent"> <h3><?echo $_POST['judul'];?></h3> <div class="sukses"> Postingan Anda Sukses Disimpan! </div> <script type="text/JavaScript"> { alert("Berhasil Update Data"); } setTimeout("location.href = 'tabelpost.php';"); </script> <? }else{ ?> <div class="gagal"> Postingan Anda Gagal Disimpan! </div> <script type="text/JavaScript"> { alert("Gagal simpan Data"); } setTimeout("location.href = 'tabelpost.php';"); </script> <? } ?> </div> <? include "footer.php"; } ?> |
Tidak ada komentar:
Posting Komentar