Form Fields PHP - v1.2
I had earlier published a post where you can easily check your form fields server side with PHP and alert the user that some of the fields are empty here.
Well, good news is that the script works just fine but here are some things I noticed on the p...
octagon.hashnode.dev3 min read
Simon Ugorji
Full-stack web developer & Technical writer
I noticed yesterday that the PHP function works so well if you're using it directly and not as an API using Ajax.
If a form field is missing a value, it doesn't output the fields missing a value when building as an API with Ajax
You will see some error about an unexpected token
Well this is because it was built only to be used directly from your PHP script, not as an API.
I have taken notice of this bug and will issue a fix soon.