Can't get $_POST to work
I'm trying to assign values to the array using this form (in account.html):

    <form name="register" action="register.php" method="post">
		<label for="username">Username:</label> <input type="text" name="username"                class="textb" maxlength="30"/><br /><br>
		Password  :  <input type="password" name="password1" class="textb"/><br /><br>
		Re-Type Password: <input type="password" name="password2" class="textb"/><br /><br>
		
		<br>
		<input type="submit" name="Create Account" value="Create Account" class="texta" />
	</form>


But when I try to call them here (in register.php) :


    $username = $_POST["username"];
    $password1 = $_POST["password1"];
    $password2 = $_POST["password2"];


I just get:

    Notice: Undefined index: username in C:\xampp\htdocs\register.php on line 3

    Notice: Undefined index: password1 in C:\xampp\htdocs\register.php on line 4

    Notice: Undefined index: password2 in C:\xampp\htdocs\register.php on line 5


Can anyone shed some light as to why The form isn't posting the variables?
Can't get $_POST to work
===

I'm trying to assign values to the array using this form (in account.html):

    <form name="register" action="register.php" method="post">
		<label for="username">Username:</label> <input type="text" name="username"                class="textb" maxlength="30"/><br /><br>
		Password  :  <input type="password" name="password1" class="textb"/><br /><br>
		Re-Type Password: <input type="password" name="password2" class="textb"/><br /><br>
		
		<br>
		<input type="submit" name="Create Account" value="Create Account" class="texta" />
	</form>


But when I try to call them here (in register.php) :


    $username = $_POST["username"];
    $password1 = $_POST["password1"];
    $password2 = $_POST["password2"];


I just get:

    Notice: Undefined index: username in C:\xampp\htdocs\register.php on line 3

    Notice: Undefined index: password1 in C:\xampp\htdocs\register.php on line 4

    Notice: Undefined index: password2 in C:\xampp\htdocs\register.php on line 5


Can anyone shed some light as to why The form isn't posting the variables?