yakoval has asked for the wisdom of the Perl Monks concerning the following question:
I want to write a server side validation for a form. The idea is to check username and password, entered by a user in a database, and if one of them is wrong (or two) return an appropriate answer to a client page.
The answer will be appear in this line: <div name="user_answer"></div>
I intend to do a validation by jQuery.post() function. On the server side I wrote a script that checks username and password.
The question is how can I send the answer (for example "You typed a wrong password") from this script to a callback function of jQuery.post()?
Maybe somebody knows more simple way to do such validation?
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: real time server side validation
by roboticus (Chancellor) on Dec 13, 2010 at 21:50 UTC | |
by chrestomanci (Priest) on Dec 14, 2010 at 09:26 UTC | |
by yakoval (Novice) on Dec 14, 2010 at 17:17 UTC | |
by JavaFan (Canon) on Dec 14, 2010 at 17:00 UTC | |
by yakoval (Novice) on Dec 14, 2010 at 16:39 UTC | |
by roboticus (Chancellor) on Dec 14, 2010 at 16:52 UTC | |
|
Re: real time server side validation
by JavaFan (Canon) on Dec 13, 2010 at 21:48 UTC | |
by yakoval (Novice) on Dec 14, 2010 at 16:48 UTC | |
|
Re: real time server side validation
by Anonymous Monk on Dec 13, 2010 at 21:31 UTC | |
by yakoval (Novice) on Dec 14, 2010 at 16:44 UTC |