PHP:
<html>
<head>
<style type="text/css">
a:visited{text-decoration: none} a:hover{text-decoration: none}
a:link{text-decoration: none} a:active{text-decoration: none}
a:link{text-decoration: none} a:hover{color: 333333}
BODY
{
scrollbar-3d-light-color:#9b9b9b;
scrollbar-arrow-color:#e8e8e8;
scrollbar-base-color:#e8e8e8;
scrollbar-dark-shadow-color:#9b9b9b;
scrollbar-face-color:#9b9b9b;
scrollbar-highlight-color:#9b9b9b;
scrollbar-shadow-color:#9b9b9b;
border-style : solid;
}
.input
{
background : #9b9b9b;
color : #000000;
font-size : 9px;
border-style : solid;
border-width : 1px;
border-color : #C00000;
width: 90px
}
</style>
<title>registration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#9b9b9b" text="#000000"><font size="1" face="Verdana">
<center><?PHP
$link = mysql_connect("localhost","bla","bla") or die ("Kein SQL Server");
$err = mysql_select_db("bla",$link) or die ("Keine Datenbank");
if(isset($submit)) {
$eintrag = "INSERT INTO zugriff (name, pass) VALUES ('$name', '$passwort')";
if(@mysql_query($eintrag)) {
echo "Danke für deine Regestrierung, $name";
}
else {
echo "Fehler!";
}
}
?></center></font>
<form name="form1" method="post" action="<?PHP echo $PHP_SELF; ?>">
<table width="76%" style="border: 1px solid #000000" border="0" cellspacing="0" cellpadding="0" align="center" height="30">
<tr>
<td width="6%" bgcolor="E8E8E8" height="15">
<div align="left"></div>
</td>
<td width="30%" bgcolor="E8E8E8" height="15"><font size="1" face="Verdana">Benutzername:</font></td>
<td width="64%" bgcolor="E8E8E8" height="15">
<input class="input" style="border: 1px solid #ffffff" type="text" name="name" size="15">
</td>
</tr>
<tr>
<td height="2" bgcolor="E8E8E8">
<div align="left"></div>
</td>
<td bgcolor="E8E8E8" height="2"><font size="1" face="Verdana">Passwort:</font></td>
<td width="64%" bgcolor="E8E8E8" height="2">
<input class="input" style="border: 1px solid #ffffff" type="password" name="passwort" size="15">
</td>
</tr>
<tr>
<td bgcolor="E8E8E8" height="42"> </td>
<td bgcolor="E8E8E8" height="42"> </td>
<td width="64%" bgcolor="E8E8E8" height="42">
<input class="input" style="border: 1px solid #ffffff" type="submit" value="Registrieren" name="submit">
</td>
</tr>
</table>
</form>
<center>
<font size="1" face="Verdana"><?php if(@mysql_query($eintrag)) {
echo "Du kannst dich jetzt mit deinem Benutzernamen, $name, und deinem angegebenem Passwort auf der Hauptseite von sk0w einloggen!";
}?>
</font>
</center>
</body>
</html>
^^ Wieso trägt es bei diesem Code alles 2 mal ein in die DB ?