When checking a particular form field, we call it by the name and check its value.
Shows you how to write a script that ensures your form is filled in correctly before it's sent to your server.
Arrays always begin at 0, so to figure out the actual array value of the form, take the forms position on the page, relative to other forms, and subtract one.
The 5th form, for example, would be called like this: If you provide your HTML forms names, the name of the form can also be used and will be easier for many webmasters.
It makes your page much more user-friendly, and takes out the frustration of having to fill out the same form repeatedly.
It's also very precise, as you can point out the exact field where there's a problem.
This is very helpful when testing for Username, password, dollar amounts, etc.