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/ | |
 | Manage your social media
Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.  | From our sponsors | | |
[ASK] proses login.. ini sepenggal cek_login.php ... Oct 16th 2013, 10:38, by Albet Sagan S | [ASK] proses login..
ini sepenggal cek_login.php if (!ctype_alnum($username) OR !ctype_alnum($pass)){ header('location:index.php?msg=1'); } elseif (!ctype_alnum($username)){ header('location:index.php?msg=2'); } elseif (!ctype_alnum($pass)){ header('location:index.php?msg=3'); } else{ header('location:index.php?msg=4'); }
ini dari index.php
<?php if (!empty($_GET['msg'])){ if($_GET['msg']==1){ echo '<div class="alert alert-error"><h6>Username dan Passowrd tidak boleh kosong </h6></div>'; }elseif ($_GET['msg']==2){ echo '<div class="alert alert-error"><h6>Username tidak boleh kosong</h6></div>'; }elseif ($_GET['msg']==3){ echo '<div class="alert alert-error"><h6>Passowrd tidak boleh kosong</h6></div>'; }elseif ($_GET['msg']==4){ echo '<div class="alert alert-error"><h6>Username dan Passowrd Salah!!</h6></div>'; } } ?>
waktu di proses kok gagal terus ya?... mohon bantuanya | | |
|
Tidak ada komentar:
Posting Komentar