Erich:

On Tue, May 21, 2002 at 10:22:10PM +0800, erich wrote:
> Warning: Undefined index: install in d:\wwwroot\program_files\install.php
> on line 14

Undefined index means that the index you requested from an array doesn't 
exist.


> <?php
> 
> $install = $HTTP_POST_VARS["install"];

That's line 14.  So, "install" isn't set, but you're using it as if it 
was.


> the strange things is when i install the php program, it does not have
> outputted this warning, but this warning occurs when i put all the files
> to a remote server

You have different error reporting levels on the different servers.

One option to solve the problem is change error reporting.  The more
preferable thing to do is this:

   if ( empty($_POST['install']) ) {
      $install = '';
   } else {
      $install = $_POST['install'];
   }

Enjoy,

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to