Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Untitled Document</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. </head>
  7.  
  8. <body>
  9. <form name="form1" method="post" action="">
  10. <table width="50%" border="0">
  11. <tr>
  12. <td>Ime i Prezime </td>
  13. <td><input type="text" name="imep"></td>
  14. </tr>
  15. <tr>
  16. <td>Email </td>
  17. <td><input type="text" name="email"></td>
  18. </tr>
  19. <tr>
  20. <td>Kupovina </td>
  21. <td><select name="kupovina">
  22. <option value="admin">admin</option>
  23. <option value="slot">slot</option>
  24. <option value="redirekcija">redirekcija</option>
  25. </select></td>
  26. </tr>
  27. <tr>
  28. <td>Server </td>
  29. <td><select name="server">
  30. <option value="dublic">Public</option>
  31. <option value="deathrun">Deathrun</option>
  32. <option value="zombie">Zombie</option>
  33. <option value="public2">Public #2</option>
  34. <option value="paintball">Paintball</option>
  35. <option value="gungame">GunGame</option>
  36. <option value="dmhs">DM+HS</option>
  37. <option value="surf">Surf</option>
  38. </select></td>
  39. </tr>
  40. <tr>
  41. <td>Username </td>
  42. <td><input type="text" name="user"></td>
  43. </tr>
  44. <tr>
  45. <td>Password </td>
  46. <td><input type="text" name="pass"></td>
  47. </tr>
  48. <tr>
  49. <td colspan="2"><input type="submit" name="Submit" value="Posalji"></td>
  50. </tr>
  51. </table>
  52. </form>
  53. Script by A1r*M4x<br>
  54. <?php
  55.  
  56. if($_POST['Submit']){
  57. $imep = $_POST['imep'];
  58. $email = $_POST['email'];
  59. $kupovina = $_POST['kupovina'];
  60. $server = $_POST['server'];
  61. $username = $_POST['user'];
  62. $password = $_POST['pass'];
  63.  
  64. if($imep == "") echo "Moras uneti ime i prezime";
  65. if($email== "") echo "Moras uneti email";
  66. if($username == "") echo "Moras unetu username";
  67. if($password == "") echo "Moras uneti password";
  68. else
  69. {
  70. $to = 'razzer-sight@hotmail.com';
  71. $subject = 'Porudzbina';
  72. $message = "Ime i Prezime: ".$imep."\nEmail: ".$email."\nKupovina: ".$kupovina."\nServer: ".$server."\nUsername: ".$username."\nPassword: ".$password;
  73. $headers = 'From: narudzbine@blabla.net' . "\r\n" .
  74. 'Reply-To: narudzbine@blabla.net' . "\r\n";
  75. echo "<strong>USPESNO STE PORUCILI</strong>"
  76.  
  77. mail($to, $subject, $message, $headers);
  78. }
  79.  
  80. }
  81.  
  82. ?>
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement