Problem in displaying moodle index page

Problem in displaying moodle index page

Shriya Dhar - ން
Number of replies: 2

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

Average of ratings: -
In reply to Shriya Dhar

Re: Problem in displaying moodle index page

Martin Dougiamas - ން
ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ ފޮޓޯ
I think the problem is somewhere in the code you've written in moodle/index.php.

(Shriya, please stop creating new discussions in this forum about this - these are not Moodle problems, but problems with your personally developed code. If you want, you could start one discussion about this problem in the General developer's forum.)
In reply to Martin Dougiamas

Re: Problem in displaying moodle index page

Shriya Dhar - ން

martin I didn't know that I have to post these queries in General Developer Forum. I will do that in near future but the problem is still there. I am attaching the moodle/index.php. I don't think there is any problem in that page, I am not able to understand why after unsuccessful login there is no value in $_POST and also frm->username and password also does not contain any value.

You can check this online also at http://jiva.netexpertsonline.com/moodle/ with test as username and test as password.