On Mon, 2005-10-31 at 11:33, Marcus Bointon wrote: > On 31 Oct 2005, at 14:54, Chris Shiflett wrote: > > > Hopefully it is also clear that your argument revolves around the > > idea that PHP would create $_POST['foo'] as NULL if the checkbox is > > not checked. This is wrong for two reasons: > > No, no, that's not what I said - I wouldn't contemplate such > silliness! The thing I was wrong on is that PHP converts unset > parameters (as opposed to nonexistent ones which it obviously can't > do anything about) to an empty string, e.g. given ?a=&b=1, $_REQUEST > ['a'] is "", not NULL. Ummm that's not a conversion, the 'a' parameter is there with exactly 0 characters, thus it is a 0 length string. That's not a PHP idiosyncrasy, I'm pretty sure that's the standard. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php