Checking Fields against Each Other
It's common to want to check one field against another, especially when you're asking the user to type in a password. You want to make them type it in twice for accuracy, and you want to make sure that they typed the same thing both times.
Script 7.8. Use this script to compare the value of one field to another. Do they match?
Figure 7.6. The two password fields cross-check to make sure their contents are identical. In this case, not so much.