|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
Login process did't work
I am new on WAP programming.
i need help, my code didn't work, when I browse it using emulator in my computer localhost. i use M3GATE emulator. if empty nick and pass this code work. but when nick and pass not match, user and nick match(right), this code also go to else(proses login gagal). Could any one help me to check my code, please? user_login.wml ================== php Code:
user_logincek.php =================== php Code:
Last edited by jabba_29 : August 17th, 2007 at 07:46 AM. Reason: Put code in highlight tags |
|
#2
|
||||
|
||||
|
Hi there, welcome to Dev Shed.
Thanks for sharing your database information - credentials duly noted ![]() I have edited your post 1) to make it more readable 2) remove your database credentials As to your actual code: First off, you shouldn't really tell the user that they have failed due to wrong name or wrong password separately. I know it is a PITA for a user when they are not sure what aspect of login was wrong, but you should use a generic message - secutiry through obscurity or something like that. You have no error trapping on database - you should be using mysql_error() etc.... in development at least. I have no sympathy if you are actually getting mysql errors and you don't report then ![]() PHP Code:
snippet
Have the passwords been saved in mysql password format? If they have, and you only have a small user base - I suggest changing to SHA1 ![]() this is at least portable should you upgrade to progresSQl database for example. This is an close to the way I would do it. Feel free to add mysql_error() at mentioned points. You can always add print_r($_REQUEST) to the page on processing, see what parameters are actually being sent through the form. HTH. Good luck.
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ Last edited by jabba_29 : August 17th, 2007 at 08:11 AM. |
|
#3
|
|||
|
|||
|
Thanks for the good info.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Login process did't work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|