Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inputData(
- /*DATA Pemohon*/
- $username,
- $email,
- $nip,
- $nama,
- $password,
- $verif,
- $otorisasi,
- $jawab1,
- $jawab2){
- include 'lib/config.php';
- $con = new classConnection();
- $con->getOpenCon();
- $to = $email;
- $subject = 'Konfirmasi Email';
- $messages = $nama.$password;
- $headers .= 'From: <ryanramang@gmail.com>' . "\r\n"; //bagian ini diganti sesuai dengan email dari pengirim
- // @mail($to, $subject, $messages, $headers);
- $baca_user = mysql_query("select * from t_admin where username='$username' or no_identitas='$nip'");
- $user = mysql_num_rows($baca_user);
- if($user > 0){
- echo "<script type=\"text/javascript\">
- window.location = \"index.php?modul=daftar&aksi=input&info=ganda\";
- </script>";
- }else{
- if(mail($to, $subject, $messages, $headers)){
- echo "Sukses";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement