HTML form verification is a good candidate for Active Client Pages (ACP). After a user has filled in an HTML form, you may want to present a new page to him showing all of the information he has typed in the form. This new page is the verification page. In this article I show you how to use the technology of Active Client Pages to produce the verification page at the client, not from the server as the present state of the art depicts.
As you can see, the value of the variable is a string. The string is made up of the HTML elements of the verification page. All of the entities in the string have been escaped.
If you extract the HTML elements from the above string, you will have the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The above is the code as it should be in the verification page. You should now be able to understand the code in the verification page. Let us now look at the verify() function.