Unite PHP and javascript?
Posted: Wed Mar 02, 2005 7:42 pm
Hello and thanks for reading my post 
I'll try to keep it short:
I have a form. Some specific values are not allowed to be entered (because they're already registered), and these are checked when user presses Submit in a Javascript, and returns true or false, if false, it gives an error message, if true, the form is sent and some other coding comes. This works fine.
However, the same form is using when an existing user is updating his/hers account. But if he/she wants to change only some fields, and not the one which cannot contain already registered names, he/she gets an error!
How can I prevent this?
I hope I made myself clear enough, if not, please let me know
I'll try to keep it short:
I have a form. Some specific values are not allowed to be entered (because they're already registered), and these are checked when user presses Submit in a Javascript, and returns true or false, if false, it gives an error message, if true, the form is sent and some other coding comes. This works fine.
However, the same form is using when an existing user is updating his/hers account. But if he/she wants to change only some fields, and not the one which cannot contain already registered names, he/she gets an error!
How can I prevent this?
I hope I made myself clear enough, if not, please let me know