June 2005
Intermediate
720 pages
20h 6m
English
Now that I have an HTML form, I’ll write a bare-bones PHP script to handle it. When I say that this script will be handling the form, I mean that it will do something with the data it receives. In this chapter, the scripts will reiterate the data back to the Web browser, but in later examples, it will be stored in a MySQL database, checked against previously stored values, sent in emails, and more.
Registering GlobalsIn earlier versions of PHP, the register_globals setting was turned on by default. This feature gave PHP an ease of use by automatically turning form inputs into similarly named variables, like $name or $email (as opposed to having to refer to $_REQUEST['name'] and $_REQUEST['email'] first). As of version ... |
Read now
Unlock full access