- Joined
- Nov 19, 2008
- Messages
- 50
- Reaction score
- 2
i'm not whats wrong now? i get this error:
Notice: Undefined index: submit in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 3
Notice: Undefined index: navn in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 4
Notice: Undefined index: username in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 5
Notice: Undefined index: password in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 6
Notice: Undefined index: repeatpassword in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 7
<?php
echo "register";
$submit = $_POST['submit'];
$navn = $_POST['navn'];
$username = $_POST['username'];
$password = $_POST['password'];
$repeatpassword = $_POST['repeatpassword'];
if ($submit)
{
}
?>
<html>
<form action='register.php' methot='POST'>
<table>
<tr>
<td>
Dit navn:
</td>
<td>
<input type='text' name='navn'>
</td>
</tr>
<tr>
<td>
Brugernavn:
</td>
<td>
<input type='text' name='username'>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type='password' name='password'>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type='password' name='repeatpassword'>
</td>
</tr>
</table>
<input type='submit' name='submit' value='Register'>
</form>
</html>
Notice: Undefined index: submit in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 3
Notice: Undefined index: navn in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 4
Notice: Undefined index: username in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 5
Notice: Undefined index: password in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 6
Notice: Undefined index: repeatpassword in C:\wamp\www\Projects\Css_hjemmeside\register.php on line 7
<?php
echo "register";
$submit = $_POST['submit'];
$navn = $_POST['navn'];
$username = $_POST['username'];
$password = $_POST['password'];
$repeatpassword = $_POST['repeatpassword'];
if ($submit)
{
}
?>
<html>
<form action='register.php' methot='POST'>
<table>
<tr>
<td>
Dit navn:
</td>
<td>
<input type='text' name='navn'>
</td>
</tr>
<tr>
<td>
Brugernavn:
</td>
<td>
<input type='text' name='username'>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type='password' name='password'>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type='password' name='repeatpassword'>
</td>
</tr>
</table>
<input type='submit' name='submit' value='Register'>
</form>
</html>
Last edited: