... shopping carts, registration systems, and corporate web portals, insecure code can have very serious consequences for a site, the site s owners, and the site s users. This book has two goals: to ... ValidationLike most fast and simple mechanisms, ctype has a number of limitations, which somewhat limit its usefulness. Various, perfectly valid characters, such as emdashes (—) and single quotes are ... locale-sensitive [A-Za-z] range and invalidate strings. White space charac-ters such as spaces, tabs, and new lines are also considered invalid. Moreover, because ctype is a separate extension,...