BTC USD 83,712.8 Gold USD 4,286.54
Time now: Jun 1, 12:00 AM

SUCCESSFUL~!!! Alhamdulillah

If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled...
session register ni dah xdisyorkan pakai dah sebab php 5.3.0 dah xsupport mende ni dah... tq

so jgn pakai session_register.. set into session array cam biasa
$_SESSION['username'] = 'username';
$_SESSION['password'] = 'password';
 
Last edited:
If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled...
session register ni dah xdisyorkan pakai dah sebab php 5.3.0 dah xsupport mende ni dah... tq

da tuka da,,,
still same
 
If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled...
session register ni dah xdisyorkan pakai dah sebab php 5.3.0 dah xsupport mende ni dah... tq

so jgn pakai session_register.. set into session array cam biasa
$_SESSION['username'] = 'username';
$_SESSION['password'] = 'password';
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<?php

// Inialize session
//session_start();

// Check, if user is already login, then jump to secured page
//if (isset($_SESSION['username'])) {
//header('Location: prog/semak.php');
//}

?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>KELAB 1221</title>
</head>
<body background="img/ABSTRACT-SunergosGreyWallpaper_1600x1200.png">

<p> </p>
<p><br />
</p>
<b><center><font face="Arial, Helvetica, sans-serif" size="7" color="#0006f3">KELAB 1221</font></center></b>
<p> </p>
<p><br />
</p>
<form id="form1" name="form1" method="post" action="prog\semak.php">
<label></label>
<table width="329" border="3" align="center">
<tr>
<td width="115">Username</td>
<td width="8">:</td>
<td width="180"><input name="username" type="text" id="textfield" size="30" /></td>
</tr>
<tr>
<td>Kata Laluan</td>
<td>:
<label></label></td>
<td><input name="password" type="password" id="textfield2" size="30" /></td>
</tr>
</table>
<p align="center">
<label>
<input type="submit" name="button" id="button" value="Submit" />
</label>
<label>
<input type="reset" name="button2" id="button2" value="Reset" />
</label>
</p>
</form>
<p> </p>
<p align="center"><strong>KELAB 1221</strong></p>
<p align="center"><strong>MAJLIS BANDARAYA SHAH ALAM</strong></p>
</body>
</html>

////
betulkan prog\semak.php kepada prog/semak.php
kemudian rename bejaya.php kepada berjaya.php di dalam folder prog
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<?php

// Inialize session
//session_start();

// Check, if user is already login, then jump to secured page
//if (isset($_SESSION['username'])) {
//header('Location: prog/semak.php');
//}

?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>KELAB 1221</title>
</head>
<body background="img/ABSTRACT-SunergosGreyWallpaper_1600x1200.png">

<p> </p>
<p><br />
</p>
<b><center><font face="Arial, Helvetica, sans-serif" size="7" color="#0006f3">KELAB 1221</font></center></b>
<p> </p>
<p><br />
</p>
<form id="form1" name="form1" method="post" action="prog\semak.php">
<label></label>
<table width="329" border="3" align="center">
<tr>
<td width="115">Username</td>
<td width="8">:</td>
<td width="180"><input name="username" type="text" id="textfield" size="30" /></td>
</tr>
<tr>
<td>Kata Laluan</td>
<td>:
<label></label></td>
<td><input name="password" type="password" id="textfield2" size="30" /></td>
</tr>
</table>
<p align="center">
<label>
<input type="submit" name="button" id="button" value="Submit" />
</label>
<label>
<input type="reset" name="button2" id="button2" value="Reset" />
</label>
</p>
</form>
<p> </p>
<p align="center"><strong>KELAB 1221</strong></p>
<p align="center"><strong>MAJLIS BANDARAYA SHAH ALAM</strong></p>
</body>
</html>

////
betulkan prog\semak.php kepada prog/semak.php
kemudian rename bejaya.php kepada berjaya.php di dalam folder prog

da buat,,
same jgak,,
awk try jd ke??
 
pergi page berjaya.php
line 12
buang die(.);
(useless benda tu)
 
Back
Top
Log in Register