Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include "config.php";
- $idd = $_POST['id'];
- $db2 = mysqli_connect($dbhost, $dbuser, $dbpass, $dbdatabase) or die(exit());
- $abfrage2 = mysqli_query($db2, "SELECT * FROM user WHERE id LIKE '$idd'");
- $rowe = mysqli_fetch_object($abfrage2);
- echo $rowe->code;
- ?>
- <center><h1>Login</h1></center>
- <center>
- <form action="" method="post">
- <input type="text" name="id" required placeholder="Deine ID"><br>
- <input type="password" name="code" required placeholder="CODE"><br>
- <input type="submit" name="weiter" value="Weiter rätseln">
- </form>
- </center>
- <?
- $submit = $_POST['weiter'];
- $codeee = $row->code;
- if(isset($submit)){
- if($_POST['code'] == $codeee){
- echo "Richtig";
- }else{
- echo "Falsch";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement