daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>Schlumpfclub</title>
  4.  
  5. <form action="kaufen.php" method="POST">
  6.      <p>
  7.     <select name="club" size="5">
  8.       <option>Schlumpfclub(1Monat)</option>
  9.       <option>Schlumpfclub(2Monat)</option>
  10.  
  11.     </p>
  12.     </select>
  13.  
  14.     <div style="margin-top:10px;">Dein Schlumpfname</div>
  15.     <input type="text" name="username">
  16.     <br />
  17.     Deine Email <br />
  18.     <input type="text" name="email">
  19.     <br />
  20.  
  21.     Dein Kommentar <br />
  22.     <input type="text" name="kommentar">
  23.     <br />
  24.     <div style="margin-top:20px;"><input type="submit" name="submit" value="Dein Beitrag posten!"></div>
  25.     <br />
  26.  
  27.  
  28. <style type="text/css">
  29.  
  30. body {
  31. font-family: Arial;
  32. font-size:15px;
  33. background-color: #C0C0C0;
  34. color: #000000;
  35. text-align:center;
  36. }
  37. </style>
  38.  
  39.  
  40. <?php
  41.  
  42. require_once("mysql/core.php");
  43.  
  44. $club = trim(htmlspecialchars($_POST['club']));
  45.  
  46. $username = trim(htmlspecialchars($_POST['username']));
  47.  
  48. $email = trim(htmlspecialchars($_POST['email']));
  49.  
  50.  
  51. $kommentar = trim(htmlspecialchars($_POST['kommentar']));
  52.  
  53. $ipadresse = trim(htmlspecialchars($_POST['ipadresse']));
  54.  
  55. $eintrag = mysql_query("INSERT INTO users(club,username,email,kommentar,ipadresse,timestamp) VALUES('".$club."','".$username."','".$email."','".$kommentar."','".$ipadresse."',CURRENT_TIMESTAMP)")or die (mysql_error());
  56.  
  57. if($eintrag == "1")
  58. {
  59. echo "Deine Daten wurden abgesendet!";
  60. }
  61. else
  62. {
  63. echo "Deine Daten wurden nicht abgesendet!";
  64. }
  65. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top