-
Notifications
You must be signed in to change notification settings - Fork 86
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
How to make same as email but now with name "already taken" #18
Comments
And i make it in validation.js:
But it won't work |
In what way doesn't it work? Do you get any error messages? Try debugging the code by inserting debugging statements to print out the values of the variables at different stages |
Hello daveh, Thank you for response! It seems like just the validate-name.php be skipped when the button be pressed in register window. No errors. Did I need connect the validate-name.php with process-signup or something like that? Or need write specific code for name checking? Thanks:) |
In your JavaScript, you're passing the name value in the query string with an index of "email":
but then getting this on the server with an index of name: Try changing them so they match, e.g.
|
I already do it, but still didn't work |
Check the browser console to see what JS requests are being made, and if there are any errors |
From that it looks like the JavaScript validation isn't running when you submit the form. Check the code that attaches the validation to the form, it could be that. |
If JustValidate is not defined, then it looks like that library isn't being loaded. Check the network console to see if there is an error when requesting that file, or make sure you're loading that file before your own one. |
I added this line in signup.html: Now it seems the validation.js is working but show the just-validate.min.js been failed it when you pressed on the just-validate.min.js text it in next page show this: But when you enter already create name it still allow to signup |
You can get it from the official website:
|
Try debugging by seeing what value is being returned from the script that checks the email address and returns a value to the JavaScript |
Perhaps the syntax has changed in a more recent version of JustValidate - the documentation is here. |
Try debugging the script that checks the emails by running the PHP code directly with an empty string for the email address. You can run the PHP script directly by requesting it in the browser's address bar, passing the email in the query string. You can print out debugging statements to see what values the various statements in the PHP are returning, to see where the issue is. |
Thank you daveh for all your support:)! |
Hello I want to ask how to make same as email but now with name "already taken" I tried but didn't work.
I tried like this but didn't work
Thank you!
The text was updated successfully, but these errors were encountered: