PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
my problem is :whenever i log in ,it always shown 'You are not log in'.
Never show "You are logged in as xx"
For example:i do a testing,i input username:abc and password:1234 in "user" table.
Next,i try to log in using abc and 1234.But,still shown 'You are not log in'
can anyone tell me which part have bugs?or how i edit the code?
I already use a phpeditor to check bugs,but no warning shown.
Hope u able to help me.
TQ
[syntax="html"]//login.html
<html>
<head>
<title>Login here</title>
</head>
<body>
<form method="POST" action="login.php">
Username
<input type="text" name="username" size="20"></p>
Password
<p><input type="text" name="password" size="20"></p>
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]