Originally Posted by Shogikishi
Why wouldn't <option value="0"> work?
Because of this line:
$var = (!empty($_REQUEST['selectSY']))?$_REQUEST['selectSY']:'';
Unless I'm missing something, that line is essentially meaningless, besides stripping that zero. From the php manual for empty
* "" (an empty string)
* 0 (0 as an integer)
* "0" (0 as a string)
* array() (an empty array)
* var $var; (a variable declared, but without a value in a class)
So, that line is saying: "If the request var is not empty, set $var to it. Otherwise, set it to empty." That's why I say it's meaningless.
By the way, one of the top stickies in the forum says (with good reason) to wrap your code in appropriate tags - in the subject line, even. Really helps readability, which means it helps get responses, too.