Problem mit HTML?
Hallo, ich habe ein Problem mit meiner Login page:
-"Haben Sie schon einen Account?" wird einf nicht angezeigt. Ich habe keine Ahnung woran es liegt. Hier der Code:
<!DOCTYPE html>
<html lang="de">
<head>
<title>LOGIN</title>
<meta charset="UTF-8">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="css/style_Login.css">
</head>
<body>
<div class="container" id="container">
<div class="form-container sign-up">
<form action="signup-check.php" method="post">
<h1>Neuer Account</h1>
<?php if (isset($_GET['error'])) { ?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<?php if (isset($_GET['success'])) { ?>
<p class="success"><?php echo $_GET['success']; ?></p>
<?php } ?>
<span>Registrieren</span>
<!-- Name-->
<?php if (isset($_GET['name'])) { ?>
<input type="text"
name="name"
placeholder="Name"
value="<?php echo $_GET['name']; ?>">
<?php }else{ ?>
<input type="text"
name="name"
placeholder="Name">
<?php }?>
<!-- Benutzername-->
<?php if (isset($_GET['uname'])) { ?>
<input type="text"
name="uname"
placeholder="Benutzername"
value="<?php echo $_GET['uname']; ?>">
<?php }else{ ?>
<input type="text"
name="uname"
placeholder="Benutzername">
<?php }?>
<!-- Passwort-->
<input type="password"
name="password"
placeholder="Passwort">
<input type="password"
name="re_password"
placeholder="Passwort wiederholen">
<!--submit-->
<button type="submit">Los gehts</button>
</form>
</div>
<div class="form-container sign-in">
<form action="login.php" method="post">
<h1>Anmelden</h1>
<span>Einloggen mit Benutzernamen und Passwort</span>
<?php if (isset($_GET['error'])) { ?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<input type="text" name="uname" placeholder="Benutzername">
<input type="password" name="password" placeholder="Passwort">
<a href="#">Passwort vergessen?</a>
<button type="submit">Los gehts</button>
</form>
</div>
<div class="toggle-container">
<div class="toggle">
<div class="toggle-panel toggle-left">
<h1>Haben Sie schon <br>einen Account?</h1>
<p>Einloggen mit Name & Passwort</p>
<button class="hidden" id="login">Los gehts</button>
</div>
<div class="toggle-panel toggle-right">
<h1>Hii, </h1>
<p>erstellen Sie einen Account bei "PROX", um für alle Situationen vorbereitet zu sein</p>
<button class="hidden" id="register">Registrieren</button>
</div>
</div>
</div>
</div>
<script src="js/script_Login.js"></script>
</body>
</html>
Ist dir klar, dass in deinem Quellcode php Code vorliegt?
Natürlich. Problem wurde aber schon behoben. Lag am css
1 Antwort
Von gutefrage auf Grund seines Wissens auf einem Fachgebiet ausgezeichneter Nutzer
HTML, Programmieren & Softwareentwicklung
Ich habe keine Ahnung woran es liegt
Vermutlich am Skript
js/script_Login.js
Aber das hast du nicht gepostet.
Alex