I have customized moodle acc. to our needs but there is a problem. Please see if anyone can help. When I login into moodle with a wrong password or login name, it displays error but after that when i give correct login name and password it logs in but does not show the moodle/index page instead it remains on the login/index page only and when i manually type the address of moodle/index page it shows the page. If i successfully login for the first time only then there is no problem. Problem occurs when once there is a unsuccessful login. I checked the variables. Basically when after unsuccessful login data_submitted function is called, it returns false as it shows $_POST variable as empty and hence it does not enter the loop at all. I am attaching login index file also. On the moodle index page i am redirecting thta page to login/index.php. Why $_POST remains empty and where is this variable filled.
PLease help