register.php
Code: Alles auswählen
<form action="reg_send.php" method="post">
<table align="center" border=0 height="40" width="50%" bgcolor="#999999">
<tr>
<td align="center" height="40" width="25%">Nickname*</td>
<td align="center" height="40" width="25%">
<input name="nick" maxlength="15"></td>
<tr>
<td align="center" height="40" width="25%">Email*</td>
<td align="center" height="40" width="25%">
<input name="email" maxlength="50"></td>
</tr>
<td align="center" height="40" width="25%">Passwort*</td>
<td align="center" height="40" width="25%">
<input name="passwort" maxlength="15"></td>
</tr>
<td align="center" height="40" width="25%">ICQ</td>
<td align="center" height="40" width="25%">
<input name="icq" maxlength="11"></td>
</tr>
<td align="center" height="40" width="50%">
<b>Wenn alle Angaben richtig sind können Sie das Formular absenden.</b></td>
<td align="center" height="40" width="50%">
<input type="submit" value="Absenden"></td>
</tr>
</table>
</form>
Code: Alles auswählen
<?
require ('./connect.php');
$action = "INSERT INTO user (nick, email, passwort, icq) VALUES ('$nick','$email','$passwort','$icq')";
mysql_db_query("$dbank",$action,$sql);
if(mysql_affected_rows($dbank)==1)
echo "Vielen dank das Sie sich in unserer Datenbank registriert haben!<br>",
"<a href=\"index.php\">Zurück zum Forum</a>";
else
echo "Es ist ein Fehler aufgetreten bitte überprüfen Sie ihre Eingabe<br>",
"<a href=\"javascript:history.back();\">Formular überprüfen</a>";
?>
Code: Alles auswählen
INSERT INTO `user` VALUES ('', '', '', '');