I am creating a login form and when i return the registration details on my register page it does nothing - can anybody help?
Here's the code for the registration page:
<?php
$return = $_POST['return'];
$name = $_POST['name'];
$username = $_POST['username'];
$password = $_POST['password'];
$rpassword = $_POST['rpassword'];
if($return)
{
//this is just to output what the user enterd so that i can see if its working but is not...
echo "$username/$name/$password/$rpassword";
}
?>
<html>
<from action='Register.php' method='POST'>
<table>
<tr>
<td>
<font face='arial'/>
Enter Name:
</td>
<td>
<input type='text' name='name'>
</td>
</tr>
<tr>
<td>
<font face='arial'/>
Enter username:
</td>
<td>
<input type='text' name='username'>
</td>
</tr>
<tr>
<td>
<font face='arial'/>
Enter password:
</td>
<td>
<input type='password' name='password'>
</td>
</tr>
<tr>
<td>
<font face='arial'/>
Enter password again:
</td>
<td>
<input type='password' name='rpassword'>
</td>
</tr>
</font>
</table>
<p>
<input type='submit' name='return' value='Register'>
</p>
</form>
</html>