Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help validate.js #100

Closed
countalucard2022 opened this issue Feb 25, 2014 · 6 comments
Closed

Help validate.js #100

countalucard2022 opened this issue Feb 25, 2014 · 6 comments

Comments

@countalucard2022
Copy link

How can I display the message I created after verifying if the username and password are correct using php?I want to show that message using the validate.js and not using alert or any other javascript function any help sir?

@rickharrison
Copy link
Owner

validate.js events happen before anything is sent to your server. After you process something with PHP, it is totally up to you how to display information.

@countalucard2022
Copy link
Author

I mean after I pass it to the server is there any way I can send message errors using validate.js?

@rickharrison
Copy link
Owner

You can only do something before it is passed to the server. After it is passed, it means the page is sending a new http request.

@countalucard2022
Copy link
Author

Okay thanks for the update, but I still have question how can I make 2 rules in 1 object?
I tried to do something like this but it's not working
New FormValidator('contact_form', [{
name: 'comment',
display: 'Comment Box',
rules: 'required'
},{
name: 'comment',
display: 'Comment Box',
rules: 'min_length[15]' }

@rickharrison
Copy link
Owner

You need to pipe them together as it's defined in the documentation at http://rickharrison.github.io/validate.js/

required|min_length[15]

@countalucard2022
Copy link
Author

oh my good god! i'll just about to close it as I fix my own problem after reading your documentation again and thanks to the fast reply hahah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants