Chapter 10: Server Behaviors

To create a server behavior (p. 176-77)

<?php
//tests to make sure password fields are the same
function VQP_goToPage($toPage) {
header("Location: $toPage");
} if (count($HTTP_POST_VARS)>0) {
if ($HTTP_POST_VARS[pass1]==$HTTP_POST_VARS[pass2]) {
VQP_goToPage ("");
} else {
VQP_goToPage("");
}
}
?>