Advertisement
ramang

Untitled

Jul 28th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. function inputData(
  2. /*DATA Pemohon*/
  3. $username,
  4. $email,
  5. $nip,
  6. $nama,
  7. $password,
  8. $verif,
  9. $otorisasi,
  10. $jawab1,
  11. $jawab2){
  12. include 'lib/config.php';
  13. $con = new classConnection();
  14. $con->getOpenCon();
  15.  
  16.  
  17. $to = $email;
  18. $subject = 'Konfirmasi Email';
  19. $messages = $nama.$password;
  20. $headers .= 'From: <ryanramang@gmail.com>' . "\r\n"; //bagian ini diganti sesuai dengan email dari pengirim
  21. // @mail($to, $subject, $messages, $headers);
  22.  
  23. $baca_user = mysql_query("select * from t_admin where username='$username' or no_identitas='$nip'");
  24. $user = mysql_num_rows($baca_user);
  25.  
  26. if($user > 0){
  27. echo "<script type=\"text/javascript\">
  28. window.location = \"index.php?modul=daftar&aksi=input&info=ganda\";
  29. </script>";
  30.  
  31. }else{
  32. if(mail($to, $subject, $messages, $headers)){
  33. echo "Sukses";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement