Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Schlumpfclub</title>
- <form action="kaufen.php" method="POST">
- <p>
- <select name="club" size="5">
- <option>Schlumpfclub(1Monat)</option>
- <option>Schlumpfclub(2Monat)</option>
- </p>
- </select>
- <div style="margin-top:10px;">Dein Schlumpfname</div>
- <input type="text" name="username">
- <br />
- Deine Email <br />
- <input type="text" name="email">
- <br />
- Dein Kommentar <br />
- <input type="text" name="kommentar">
- <br />
- <div style="margin-top:20px;"><input type="submit" name="submit" value="Dein Beitrag posten!"></div>
- <br />
- <style type="text/css">
- body {
- font-family: Arial;
- font-size:15px;
- background-color: #C0C0C0;
- color: #000000;
- text-align:center;
- }
- </style>
- <?php
- require_once("mysql/core.php");
- $club = trim(htmlspecialchars($_POST['club']));
- $username = trim(htmlspecialchars($_POST['username']));
- $email = trim(htmlspecialchars($_POST['email']));
- $kommentar = trim(htmlspecialchars($_POST['kommentar']));
- $ipadresse = trim(htmlspecialchars($_POST['ipadresse']));
- $eintrag = mysql_query("INSERT INTO users(club,username,email,kommentar,ipadresse,timestamp) VALUES('".$club."','".$username."','".$email."','".$kommentar."','".$ipadresse."',CURRENT_TIMESTAMP)")or die (mysql_error());
- if($eintrag == "1")
- {
- echo "Deine Daten wurden abgesendet!";
- }
- else
- {
- echo "Deine Daten wurden nicht abgesendet!";
- }
- ?>
Add Comment
Please, Sign In to add comment