On Thu, Jul 05, 2001 at 12:05:28PM +0200, Tom Gitzinger wrote:
> Hello Richard,
> I'm not quite sure but I think the problem is the following:
> - If no month has been specified, the variable $month is not defined.
> - If you then mention $month in
> if ($month == "")
> the Parser creates the variable. Its value is unpredictable, but it is
> most unlikely that
> it is an empty string ("").
> To solve the problem, you should be able to check whether the variable
> $month exists. I'm sorry I can't help you here because I've only started
> programming PHP but reading the function reference or something might help you.
You could check if it has been set by doing:
(I'm not 100% sure about the last one, though..)
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]