<?
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$form="<form method='POST' action='http://blogproject.ueuo.com/kirim.php'>";
$form .="<table>";
$form .="<tr><td colspan=2><input type='text' name='namaid' value='login'></td></tr>";
$form .="<tr><td colspan=2><input type='password' name='password' value='******'></td></tr>";
$form .="<tr><td><input type='submit' name='submit' value='sign in'></td><td><a href='http://blogproject.ueuo.com/daftar.php'>Sign Up</a></td></tr>";
$form .="</table>";
$form .="</form>";
if($_SESSION[namauser]=="")
{
echo "document.write(\"$form\")";
}
else
{
$login="<table><tr>";
$login .="<td>$_SESSION[namauser]</td>";
$login .="<td><a href=\"http://blogproject.ueuo.com/logout.php\">[LOGOUT]</a></td></tr></table>";
echo "document.write('$login')";
}
?>
Tidak termasuk yang di copy
Catatan : Ganti bagian yang berwarna merah dengan alamat hosting anda sendiri
No comments:
Post a Comment