Minggu, 17 November 2013

PHP Indonesia - Facebook: [ASK] Belajar bikin form pendaftaran kodex kek gin...

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/ 
Curious about the benefits of meditation?

In just a few minutes daily, this course will teach you how to relax and relieve stress. Even with a full schedule, you will want to make time for this!
From our sponsors
[ASK] Belajar bikin form pendaftaran kodex kek gin...
Nov 17th 2013, 14:05, by Andy Masih Dudung

Andy Masih Dudung 2:05pm Nov 17
[ASK] Belajar bikin form pendaftaran kodex kek gini
<?php
include 'db_config.php';
$nama = $_POST['username'];
$mail = $_POST['email'];
$pass1 = $_POST['password1'];
$pass2 = $_POST['password2'];

if (empty($nama)){
echo"Nama Lengkap Harus Di isi <br/>";
}
if(empty($mail)){
echo"Email Harus Di isi<br/>";
}
if(empty($pass1)){
echo"Password Harus Di isi<br/>";
}
if ($pass1=$pass2){
echo"Password tidak sama";
}
else
{
$kode = md5(uniqid(rand()));
$simpen =mysql_query ("insert into member (id, username, email, password, aktif, kode) values ('', '$nama', '$mail', '$pass1', 'T', '$kode')") or die (mysql_error());
}
?>

tiap kali di refresh/klik tombol daftar kok tetep masuk ke db ya, salahnya dimana? ato ada kode yang kurang ya mohon bimbingannya

Trias Fahrudin 2:10pm Nov 17
tak bisikin ya.... http://stackoverflow.com/questions/8553466/why-does-my-form-send-the-data-twice-after-refresh

Cres Thover 2:12pm Nov 17
maaf ya gan kalau salah tapi ini "Fakta"
misalnya form berada di //form.html dan akan di arahkan ke //prosesform.php
nah... disini permasalahan nya... saat kita refresh di //prosesform.php memang akan masuk ke database....

Trias Fahrudin 2:13pm Nov 17
halah, ente kira ane "ngehayal". baca dulu deh

Heru Rahmat Akhnuari 2:22pm Nov 17
ob_start();
dan
ob_end_flush();

Ade Rayendra 2:23pm Nov 17
statement if else ada yg aneh kyaknya... CMIIW

Heru Rahmat Akhnuari 2:24pm Nov 17
yg passnya gan $pass1==$pass2
= -> return
== -> boolean

Andy Masih Dudung 2:31pm Nov 17
bang Trias Fahrudin ane ke TKP dulu bang Cres Thover formnya cuma 1 bang gak di arahkan bang Heru Rahmat Akhnuari itu di taro di kode awalkah? Ade Rayendra dimananya bang, maaf ane pemula bang @Heru Rahmat Akhnuari garuk-garuk kepala ane bang

Cres Thover 2:32pm Nov 17
Andy Masih Dudung Pantes gan...

Andy Masih Dudung 2:32pm Nov 17
bang Trias Fahrudin ane ke TKP dulu bang Cres Thover formnya cuma 1 bang gak di arahkan bang Heru Rahmat Akhnuari itu di taro di kode awalkah? Ade Rayendra dimananya bang, maaf ane pemula bang @Heru Rahmat Akhnuari garuk-garuk kepala ane bang

Ade Rayendra 2:35pm Nov 17
itu kenapa semua if if if if else???? Trus yg pass harusnya pass1 == pass2,, bukan pass1=pass2... #CMIIW

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