Sabtu, 17 Agustus 2013

PHP Indonesia - Facebook: [help] Dah nyari kemana2, tpi ga nemu, mulai dari ...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
[help] Dah nyari kemana2, tpi ga nemu, mulai dari ...
Aug 17th 2013, 10:44, by Limb Gultom

Limb Gultom 10:44am Aug 17
[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";
}
?>

Limb Gultom 11:09am Aug 17
up

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar