Dave Hollingworth

Results 97 comments of Dave Hollingworth

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...

In your JavaScript, you're passing the name value in the query string with an index of "email": `return fetch("validate-name.php?email=" + encodeURIComponent(value))` but then getting this on the server with an...

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...

You can get it from [the official website](https://just-validate.dev/): ``

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](https://just-validate.dev/).

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...

@techangela1 It looks like you're missing a semicolon after `connect_error)`, so: `connect_error);`