Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title></title>
  4. </head>
  5. <body>
  6. <form method="post" action="odeslat.php" >
  7. <input type="text" size="200" name="text" value=""><br />
  8. <input type="submit" value="submit" name="submit" />
  9. </form>
  10. </body>
  11. </html>
  12. <?php
  13. $db = "fallcharacters";
  14. $ip = "84.245.95.238:3306";
  15. $user = "ed0ma-wow3r";
  16. $pass = "Off11sNit[aAl30deisM";
  17. $text = @strtoupper($_POST["text"]);
  18.  
  19. $con = mysql_connect($ip, $user, $pass);
  20. $q = "insert into " . mysql_real_escape_string($db) . ".comment (comment) values ('" . $text . "')";
  21. $query = @mysql_query($q, $con);
  22.  
  23. if($query)
  24. echo "Formular odeslan!";
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement