Hallo wolllte mein Login schreiben.
HTML
PHP:
Aber bekomm immer diesen Fehler
?
mfg.one
HTML
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Anmeldeformular</title>
<style type="text/css">
.box{
width:500px;
border:#333333 solid 1px;
margin:150px auto;
background-color:#CCCCCC
}
</style>
</head>
<body>
<center>
<div class="box">
<table>
<form action="anmelden.php" method="post">
<tr><td>
Vorname:
</td><td>
<input type="text" name="vorname" />
</td></tr>
<tr><td>
Nachname:
</td><td>
<input type="text" name="nachname" />
</td></tr>
<tr><td>
Email:
</td><td>
<input type="text" name="email" />
</td></tr>
<tr><td>
Password:
</td><td>
<input type="text" name="password" />
</td></tr>
<tr><td>
<input type="submit" value="Anmelden" />
</td><td>
<input type="reset" value="Zurücksetzen" />
</td></tr>
</form>
</table>
</div>
</center>
</body>
</html>
PHP:
PHP:
<?php
require_once ('konfiguration.php');
$db_link = mysql_connect (MYSQL_HOST, MYSQL_BENUTZER, MYSQL_KENNWORT);
// Übertragene Zeichenketten in Variablen speichern.
$vorname = $_POST[vorname];
$nachname = $_POST[nachname];
$email = $_POST[email];
$password = $_POST[password];
// Daten in Datenbank eintragen.
$eintragen = "INSERT INTO user_anmeldung
(Vorname, Nachname, Email, Password)
VALUES
('$vorname', '$nachname', '$email', '$password')";
$eintrag = mysql_query($eintragen);
?>
Aber bekomm immer diesen Fehler
Notice: Use of undefined constant vorname - assumed 'vorname' in C:\xampp\htdocs\community\login\anmelden.php on line 14
Notice: Use of undefined constant nachname - assumed 'nachname' in C:\xampp\htdocs\community\login\anmelden.php on line 15
Notice: Use of undefined constant email - assumed 'email' in C:\xampp\htdocs\community\login\anmelden.php on line 16
Notice: Use of undefined constant password - assumed 'password' in C:\xampp\htdocs\community\login\anmelden.php on line 17
?
mfg.one