wwewrestling
Nervensäge
- 20 Juni 2006
- 1.480
- 108
Hallo
Ich hab hier dieses Regiestrierungsformular und wollte fragen wie ich es einstelle, dass das Formular die daten an die MySQL datenbank abschickt und anschliessend an die Startseite weiterleitet
Ich hab hier dieses Regiestrierungsformular und wollte fragen wie ich es einstelle, dass das Formular die daten an die MySQL datenbank abschickt und anschliessend an die Startseite weiterleitet
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="sub">
<form action="" method="post" name="form1" id="form1">
<table width="90%" border="0" cellpadding="8">
<tr>
<td colspan="3" class="HeaderColor"> <h4>Registrierung</h4> </td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor" nowrap="nowrap">
<label for="username"> User Name</label> </td>
<td colspan="2" class="TitleColor">
<input type="text" id="username" name="textfield" />
<br /></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor">
<label for="password"> Passwort</label> </td>
<td colspan="2" class="TitleColor"> <input type="text" id="password" name="textfield2" /> </td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor">
<label for="confirmpassword"> Wiederhole <br />
Passwort</label> </td>
<td colspan="2" class="TitleColor">
<input type="text" id="confirmpassword" name="textfield3" />
<br /></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor"> Name </td>
<td width="43%" class="TitleColor">
<label for="first">Vorname: </label> <input type="text" id="first" name="textfield4" /> </td>
<td width="46%" class="TitleColor">
<label for="last">Nachname: </label> <input type="text" id="last" name="textfield5" /> </td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor">
<label for="email"> Email</label> </td>
<td colspan="2" class="TitleColor"> <input type="text" id="email" name="textfield6" size="50" /> </td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor">Geschlecht</td>
<td colspan="2"> <p class="TitleColor">
<label for="male">Maenlich </label>
<input type="radio" id="male" name="radiobutton1" value="radiobutton" />
<label for="female">Weiblich</label>
<input type="radio" id="female" name="radiobutton1" value="radiobutton" />
</p> </td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor">Geburtstag</td>
<td colspan="2"> <table border="0" cellspacing="2" cellpadding="0">
<tr style="text-align: left">
<td class="TitleColor">
<label for="month">Monat</label>
<input type="text" id="month" name="textfield7" size="2" /> </td>
<td class="TitleColor">
<label for="day">Tag </label>
<input type="text" id="day" name="textfield8" size="2" /> </td>
<td class="TitleColor">
<label for="year">Jahr</label>
<input type="text" id="year" name="textfield9" size="4" /> </td>
</tr>
</table> </td>
</tr>
<tr style="vertical-align: top">
<td colspan="3">
<p class="StoryContentColor"> </p> </td>
</tr>
<tr style="vertical-align: top" class="FooterColor">
<td colspan="3">
<input type="submit" name="SubmitName" value="Anmelden!" /> </td>
</tr>
</table>
</form>
</body>
</html>