|
|
right now i am having problems recovering my login form script
this is in my head.php
CODE
<tr><form method=post action=login.php>
<td align="center"><b>Name</b></td>
</tr>
<tr>
<td align="center"><input type=text name=user size="12"></td>
</tr>
<tr>
<td align="center"><b>Password</b></td>
</tr>
<tr>
<td align="center"><input type=password name=pass size="12"></td>
</tr>
<tr>
<td align="center">
<p align="center"><input type=submit value=Login></form></p>
<td align="center"><b>Name</b></td>
</tr>
<tr>
<td align="center"><input type=text name=user size="12"></td>
</tr>
<tr>
<td align="center"><b>Password</b></td>
</tr>
<tr>
<td align="center"><input type=password name=pass size="12"></td>
</tr>
<tr>
<td align="center">
<p align="center"><input type=submit value=Login></form></p>
this is in my login.php
CODE
<?php $title = "Login";
if (!$user || !$pass) {
include("head.php");
print "Please fill out all fields.";
include("foot.php");
exit;
}
if (!$user || !$pass) {
include("head.php");
print "Please fill out all fields.";
include("foot.php");
exit;
}
it says "Notice: Undefined variable: user in C:\wamp\www\login.php on line 2" when i try to login ...
what is the problem??it worked before.

