Hmm seem like my password function is ok but I have one big problem.... After i enter the password, i have to press any key to continue to the menu page, they key i press will be carry over to the menu where menu is a selection page. I tried adding fflush(stdin) but can resolve.
Anyone can help?
PHP Code:
if (strcmp(pass, password) == 0)
{
clrscr();
mainpage();
gotoxy(23,22);
printf("Access granted! Press Any Key to Access Main Menu");
getch();
menu();
}
else
{
clrscr();
mainpage();
gotoxy(23,22);
printf("Access denied! Press Any Key to Continue....");
repeat++;
getch();
goto Loop;
}
}