Wednesday, March 4, 2009

Ch. 4 realistic and practical applications

This chapter explains the problems of moving your application from testing to a live site. Validation methods are explained in this section. The chapter example is being built off chapter 3 example with sending an email to multiple recipients in a database.

Problem: the recipients are receiving more than one email at a time.
Solution: need validation code in the send email php file. Client side validation could be use also such as JavaScript. This solution is on the server side.

IF statements are used to validate the data on the sever side.

Things Learned:
-isset() - checks that a variable exists and is set
-empty()-checks to see if a variable has any contents

No comments:

Post a Comment