PHP Back to Basics #10: String Handling in PHP
Ever had problems taking user input, submitting it to a database then not getting back the result you expect?
If you have, then this tutorial might make your life a whole lot easier. In this next installment of PHP Basics, Gareth takes us through some of the PHP string handling commands that can help you manage, and format, user input and database output.
You'll learn how to work with variable capitalization, input of unexpected characters that can affect your carefully constructed SQL and how to extract portions of text from a record.
In the second part of this series on building a registration and confirmation suite in PHP, Allan builds a testing script so that you can test the pages without being logged on or using a SMTP server, and builds a Validation Code Image display and checker, similar to the one illustrated, so that you can be sure that it's a real person registering, and not an automated script.