Rfo84zft

From Codemotion
Jump to: navigation, search

Rfo84zft

Source

  1. <?php
  2.  
  3. $db_host = 'localhost';
  4. $db_user = '';
  5. $db_pass = '';
  6. $db_db = '';
  7.  
  8. mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
  9. mysql_select_db($db_db) or die(mysql_error() );
  10.  
  11. //if ($_POST['send']) {
  12.  
  13. $key = $_POST['key'];
  14.  
  15. mysql_query("INSERT INTO keys (key)
  16. VALUES ('$key')
  17. or die (mysql_error()
  18. ");
  19.  
  20. echo $key;
  21. echo " inserted.";
  22. //}
  23. /*
  24. else {
  25. echo "Key failed to be inserted";
  26. }  
  27. */
  28. ?>
  29.  
  30. <!DOCTYPE HTML PUBLIC
  31. "-//W3C//DTD HTML 4.01 Transitional//EN"
  32.  
  33. "http://www.w3.org/TR/html4/loose.dtd">
  34.  
  35. <html lang="en">
  36. <head>
  37. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" >
  38. <title>Filedeploy.com</title>
  39. <link href="css.css" rel="stylesheet" type="text/css">
  40. <style type= "text/css">
  41. .TABLE,TD,INPUT{
  42.   font-size:11px;
  43.   font-family:Verdana,Arial;  
  44. }
  45. </style>
  46. </head>
  47. <body>
  48.  
  49.  
  50. <Form name ="form1" Method ="POST" Action ="index.php">
  51.  
  52. <INPUT TYPE = "text" Name ="key">
  53. <INPUT TYPE = "submit" Name = "send" VALUE = "send">
  54.  
  55. </FORM>
  56.  
  57.  
  58. <div style="margin:0; font-family:sans-serif;font-size:90%;font-weight:bold;color:#005; text-align:center;">
  59. LegionHacks.com - &copy; 2009
  60. </div>
  61. <div style="position:fixed;left:0px;bottom:0px;height:12px;width:50%;background-color:#3139E7;"></div>
  62. <div style="position:fixed;left:50%;bottom:0px;height:12px;width:50%;background-color:#008000;"></div>
  63.  
  64.  
  65. </body>
  66. </html>
Personal tools