I have a USERS table in mysql containing some test user data for my application.
I have a login form which submits to itself.
Here is basically the problem:
Whenever I try login using incorrect user/password, everything functions exactly as it should i.e. $_POST array contains expected vars: username, password, submit
Whenever I try login using correct user/password the $_POST array is empty!
All my user authentication is contained within an
if(isset($_POST['submit'])){
block of code, so it makes no sense at all that it could 'know' that these users are in the USERS table if it can't even enter this block of code?! It shouldn't care what user data I'm logging in with.
Could there be some phpMyAdmin issue?
Same thing happens when I try using GET.
I have debugged the code thoroughly and am about to give up after spending most of the weekend. Just thought I'd post here in case anyone had an idea or suggestion as to what might be going wrong. I've tried on both Firefox and Chrome.
Thanks for any replies.