Hey there,
I'm incredibly new to php and I've spent around 7 hours trying to fix this....
The problem is:
A) User inputs wrong username or password.
Does not login(goto accounts.php), and displays these errors:
Quote:
Notice: Undefined index: acc_name in /homepages/4/d222764588/htdocs/asdf/cmsAdmin/Sentry.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /homepages/4/d222764588/htdocs/asdf/cmsAdmin/Sentry.php:32) in /homepages/4/d222764588/htdocs/asdf/cmsAdmin/Sentry.php on line 53
Notice: Undefined index: action in /homepages/4/d222764588/htdocs/asdf/login.php on line 11
|
B) User inputs correct username/password.
Displays same error as before
BUT
If the user tries to login again, no matter what username/password they input it redirects them to account.php...
If anyone could help me with this I'd GREATLY greatly appreciate it!
I have a table called accounts and within it fields named acc_name and acc_pass.
I'm guessing the header error is because of the undefined index as if I replace it I dont get the header error...I have no whitespace before the header.