Selasa, 05 November 2013

PHP Indonesia - Facebook: [ASK] apa yang salah dengan cek login ane om...???...

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/ 
Fun with Brazilian Portuguese

Learn the tips and tricks to speak colloquial Portuguese in a natural and confident manner. Enroll today for just $69!
From our sponsors
[ASK] apa yang salah dengan cek login ane om...???...
Nov 5th 2013, 17:53, by Fikri D'progoel

Fikri D'progoel 5:53pm Nov 5
[ASK]
apa yang salah dengan cek login ane om...???
setelah saya input user dan pass nya,,, selalu muncul pesan "PASSWORD BELUM DIISI"
ini scriptnya...
---------------------------------------------------------------------
<?
$a=$_REQUEST['txuser'];
$b=$_REQUEST['txpass'];

if (trim($a)=="")
{
//echo "USERNAME BELUM DIISI";
echo "<script>alert('Data User Belum Di Isi..!!');
javascript:history.go(-1)</script>";
include "index.php"; exit;
}

elseif (trim($b)=="")
{
//echo "PASSWORD BELUM DIISI";
echo "<script>alert('Data Password Belum Di Isi..!!');
javascript:history.go(-1)</script>";
include "index.php"; exit;
}

if ($a=="Admin" and $b=="123")
{
header ("location: menu.php");
}

else
{
//echo "PASSWORD BELUM DIISI";
echo "<script>alert('User dan Password Belum Terdaftar (Tidak Cocok)..!!');
javascript:history.go(-1)</script>";
include "index.php"; exit;
}

?>
---------------------------------------------------------------------------------------

Zoeliandri Sapoetra 5:56pm Nov 5
Method yang dilakukan sebelum menuju ke Page ini pake apa ? GET atau POST ?

Fikri D'progoel 5:57pm Nov 5
post om

Erikku Da Yo 5:57pm Nov 5
$a=$_POST['txuser']; $b=$_POST['txpass'];

Zoeliandri Sapoetra 5:57pm Nov 5
Coba ganti pada bagian ini :

-----------------------------------------------------
$a=$_REQUEST['txuser'];
$b=$_REQUEST['txpass'];
----------------------------------------------------

Ganti dengan $_POST

Fikri D'progoel 6:00pm Nov 5
tetap gak bisa om...
:'(

Suseno Debian Lenny 6:03pm Nov 5
elseif (trim($b)=="") coba ganti jadi if saja

Fikri D'progoel 6:05pm Nov 5
masih sama kejadiannya om @Suseno Debian Lenny
:(

Suseno Debian Lenny 6:06pm Nov 5
coba liat halaman form loginnya

Fikri D'progoel 6:06pm Nov 5
<form action="ceklogin.php" method="POST">
<table>
<tr><td>Username</td><td> :</td><td><input type="text" name="txuser" size="15" /></td></tr>
<tr></tr>
<tr></tr>
<tr></tr>

<tr><td>Password</td><td> :</td><td><input type="password" name="txpass" size="15" /></td></tr>
<tr><td><input type="submit" value="login" /></td></tr>
</table>
</form>

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