php need help on registry page?

Drew

New member
as most probly will be able to tell im new to php, i am trying to write a simple register php. im getting a undefined index and error on line 5,7,8,10 ,11 here is my script.

<?php

echo "<h1>Register</h1>";

$submit = $_POST['submit'];

$fullname = $_POST['fullname'];
$username = $_POST['username'];

$password = $_POST['password'];
$repassword = $_POST['repassword'];

if ($submit)
{

echo "$username/$password/$repassword/$fullna…

}


?>
<html>
<form action="register.php" method='POST'>
<table>
<tr>
<td>
your full name:
</td>
<td>
<input type="text" name="fullname"
</td>

</tr>

<tr>
<td>
choose username:
</td>
<td>
<input type="text" name="username"
</td>

</tr>

<tr>
<td>
password:
</td>
<td>
<input type="password" name="password"
</td>

</tr>

<tr>
<td>
confirm password:
</td>
<td>
<input type="password" name="repassword"
</td>

</tr>
</table>
<input type='submit' name="submit" value="register"
</form>

</html>

ty in advance for ur help
 
Back
Top