Sounds quite odd - you may try an "echo(serialize($g_months))" in the
function and see what you get... It may be that the code generating the
option box has problems - this way you make sure $g_months is empty indeed.
Jason Rennie wrote:
> Hi all,
> I've got an array in the global scope called $g_months which oddly enough
> contains the names of the months.
> Now when I try to import this into a function as
> global $g_months;
> it doesn't work. When php prints out the array as an option box I just
> wind up with no options.
> Any ideas why this is the case ? Am I doing something wrong ?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]