Validating checkboxes using php passed legislation mandating
This is a tutorial for those who want to learn a bit more about PHP.
It assumes some knowledge of PHP on your part or at least a certain comfort level.
Shows you how to write a script that ensures your form is filled in correctly before it's sent to your server.
The PHP script doesn't know about any that were left unchecked.However, some browsers don't run Java Script, and neither do robots.) With PHP, after the form is submitted, the page and the form are unavailable to the PHP script.Only the submitted form field names and values exist for the script.This tutorial will show you how to create a Java Script-enabled form that checks whether a user has filled in the form correctly before it's sent to the server. First we'll explain why form validation is a useful thing, and then build up a simple example form, explaining things as we go along.At the end, there's a little exercise to keep you busy too!