Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php if (isset($_POST['order'])) {
  2.  
  3. date_default_timezone_set("Asia/Jakarta");
  4. $date = date("Y-m-d");
  5. $time = date("h:i:s");
  6.  
  7. $host = "localhost";
  8. $user = "root";
  9. $pass = "";
  10. $db = "test";
  11. $konek = mysql_connect($host, $user, $pass) or die ('Koneksi Gagal! ');
  12. mysql_select_db($db);
  13.  
  14. $username = explode("\r\n", $_POST['username']);
  15. $jumlah = explode("\r\n", $_POST['jumlah']);
  16. $service_id = explode("\r\n", $_POST['service_id']);
  17.  
  18. $array = array(
  19. array('$username', '$jumlah', '$service_id'),
  20. );
  21.  
  22. $send = mysql_query("INSERT INTO order(username, jumlah, service_id) VALUES ('$array[1]','$array[2]','$array[3]')");
  23. if($send) {
  24. echo "Data berhasil disimpan";
  25. } else {
  26. echo "Data gagal disimpan";
  27. } } ?>
  28. <html>
  29. <head>
  30. <title>DefacerID Mass Notifier</title>
  31. </head>
  32. <center>
  33. <form method='POST' action=''>
  34. Attacker : <br><textarea class='form-control con7' type='text' name='username' placeholder='isiin nickmu'></textarea><br>
  35. jumlah : <br><textarea type='text' name='jumlah' placeholder='isiin teammu'></textarea><br>
  36. Sites : <br><textarea class='form-control con7' name="service_id" placeholder="http://korban.com/" cols='50' rows='12'></textarea><br>
  37. <input type='submit' name='order' value='Submit!!'>
  38. </form>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement