PHP Undefined Variable

  • James Wiggins
    James Wiggins

    I’ll try to keep this as concise as possible.  I know your time is valuable, thanks for your help.

    RedHat Linux ES4 U4
    MySQL 5.0.18
    Apache 2.0.52
    PHP 5.1.2

    When I browse to hostlist.php from side.html I can see the two default hosts listed (this confirms PHP, MySQL functionality I think).  Then I browse to hosts.php by clicking on the “Add New Host” link, fill in the blanks for a new host, and click “Add Host”.  This takes me to the configuration page for that host, but all of the fields are now blank.  When I look into the database hosts table I do not see my new host data.  When I cat apache error_log I see lots of the following:

    [Wed Jan 24 08:32:10 2007] [error] [client ***.***.***.***] PHP Notice:  Undefined variable: deletedepery in /usr/local/nagiosweb/hosts.php on line 618, referer: http://\***********/nagiosweb/hosts.php

    But for different variable names and different php files.  I have confirmed that register_globals = on in php.ini and confirmed that PHP recognized with with phpinfo();.

    Any ideas?

    Thanks very much.