| |
Forum PHP IndonesiaDapatkan pertolongan pertama pada kebingungan PHP dan sekitarnya |
|
|
|
|
|
| |
|
|
All times are GMT + 7 Hours
|
|
hellpp!!! ada keluar kode error..
 |
Wed Mar 10, 2010 08:50 |
 |
Author |
Message |
titikhitam PHPnewbie

Joined: 08 Mar 2010 Posts: 9 Location: jakarta
|
| Post subject: hellpp!!! ada keluar kode error.. |
|
|
haloo para master2 php,gi bljr bkin menu login..tp dpt mslh ky gni ni..
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\titikhitam\index.php:21) in C:\xampp\htdocs\titikhitam\login.php on line 22
ni yg sy ketikan :
<?php
include("config.php");
?>
<?php
if($_GET['register'])
{
include("daftar.php");
exit;
}
?>
<?php
if($_GET['register2'])
{
include("daftar2.php");
exit;
}
?>
<?php
if($_GET['login'])
{
include("login.php");
exit;
}
?>
<p>
<?php
if($_GET['logout'])
{
print "Logout successfully, Thanks for visiting this site... Click Login to visit our site again !";
}
?>
nah kira2 titik prmaslahnnya ad dmna??
kl ad tutorialnya bagi2 dunk..masih newbie d PHP...thanx before _________________ msuic metal & cadas |
|
| |
|
|
 |
Thu Mar 11, 2010 10:23 |
 |
Author |
Message |
vortexgin PHP Programmer

Joined: 28 Jan 2009 Posts: 120 Location: Jakarta
|
| Post subject: |
|
|
coba file yg di include di tampilin juga. biasanya sih yg beginian error di function header. jadi klo kita pake function header itu ga boleh mengirimkan response text yg laen. di cek lagi z :)
Selamat Mencoba _________________ I'am GinVorteX |
|
| |
|
|
 |
Fri Mar 12, 2010 00:21 |
 |
Author |
Message |
titikhitam PHPnewbie

Joined: 08 Mar 2010 Posts: 9 Location: jakarta
|
| Post subject: |
|
|
udah ga error lagi bos.........mkasih...
tp ko giliran di logout n di back masih bs masuk ya ketampilan menu sblumnya...gmna cranya biar ga gitu??ad script yg lbh gmpang ga?? _________________ msuic metal & cadas |
|
| |
|
|
 |
Mon Apr 05, 2010 16:02 |
 |
Author |
Message |
anis135 PHPnewbie

Joined: 27 Jan 2010 Posts: 16
|
| Post subject: |
|
|
pake session aja supaya bisa ngatur udah masuk apa ga
kek gini:
| Code: | <?php <?php
session_start();
?> ?> |
|
|
| |
|
|
 |
Tue Apr 06, 2010 20:04 |
 |
Author |
Message |
mul14 PHP Programmer

Joined: 01 Jun 2009 Posts: 135 Location: Yogyakarta
|
| Post subject: |
|
|
@titikhitam
Coba tambahin ini bro
| Code: | <?php <head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT ="-1">
</head> ?> |
_________________ Join - http://framework.web.id |
|
| |
|
|
 |
Sat Jul 17, 2010 00:01 |
 |
Author |
Message |
musicanda PHP Master


Joined: 02 Jun 2010 Posts: 263 Location: Rumahnya Angeline
|
| Post subject: |
|
|
| titikhitam wrote: | udah ga error lagi bos.........mkasih...
tp ko giliran di logout n di back masih bs masuk ya ketampilan menu sblumnya...gmna cranya biar ga gitu??ad script yg lbh gmpang ga?? |
pasang session_start(), kemudian cek jika variabel session sudah tdk terbentuk, direct ke link login lagi, if (!isset(var_session)) { header("location:...php"); } |
|
| |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
|
|
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|