Categories


Loading feed
Loading feed
Loading feed

Sams Publishing: The Phrasebook Collection

Sams publishing has release 4 “Phrasebooks” for developers. They were kind enough to send me copies for review. Come on inside and kick your shoes off. Let’s talk about these 4 books for a while shall we?

Advanced Form Processing with PHP and Javascript

When building a web site, sooner or later you will need a form. Forms are the best way of gathering data from visitors. Your forms can be as small as a login form, or as large as a membership subscription form asking for lots of input. Obviously, the bigger the form, the more information there is to process, and the greater the challenge.

When inspecting form data, the two most important issues you have to worry about are intrusion,and gathering as much useful data as possible from your visitors. Although these issues appear to lay on just opposite sides - you want to collect lots of data, but you have to put restrictions against intruders - it is actually possible to do both. By taking a few precautions you can eliminate 95% of intruders while forcing visitors to supply the data you want.

You have tools for optimization of form’s inspection process, both client side and server side. Client side, the most important of the tools are scripting languages, particularly Javascript. Utilizing Javascript, you can limit and check form data while it’s still on the client side.

On the server side, you need nothing but PHP. But, you should be aware that some common coding mistakes in PHP may become deadly. Have a look at zend.com’s articles titled Coding Mistakes Part I, II, III for more details.

JavaScript Powered PHP Debugging

Debugging in a scripting language can be problematic. There are several PHP debugging options that are growing in both functionality and popularity. However, these options generally require server access and special configuration. Most programmers revert to simply printing variables to the browser via clumsy print() or print_r() statements. Neither of these solutions is ideal. Both can interfere with page layout and the results can be interspersed throughout the page and be difficult to find. With this tutorial, you will be able to create a library that will alleviate these issues.