|
narrowed down login trouble
I have the user enter login and password using:
<form name="login" method="post" action="login.php">
<input type="text" name="Array[username]">
<input type="password" name="Array{password]">
<input type="submit" name="Submit" value="Login">
then in my login script I just put:
<?
include("connect.php");
$password=$Array[password];
$username=$Array[username];
print("\n\n username: $username password: $password");
?>
now I have my connect.php print "connection successful" if I connects successfully, which it does so that part is correct.
but it doesn't print the username and password.
I think I am doing something wrong with the Array[password] and [username]. either they aren't getting sent from index.php to login.php or I am stupid and don't know my PHP functions.
thanks for everyones help so far,
Trevor
|