Web lists-archives.com

[PHP] Re: error Undefined index:




On 28 Mar 2018, at 11:41, Fernando Romero <Fernando.Romero@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> This is the error
>
> Notice: Undefined index: empresa in /var/www/jobs/ganancia_por_empresa_mes.php
> on line 34
>
> This is the query
>
> <?php
>
> $empresa = $_POST['empresa'];

It is undefined because in your <form> there is no element with the name 'impresa'.


-- 
Cheers  --  Tim

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