Re: quitar warnings
| From: | Cecilio Marín | Date: | Tue, 12 Jun 2001 01:19:57 +0000 |
| Subject: | Re: quitar warnings | ||
| References: | 1 2 3 4 5 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-11164@lists.php.net to get a copy of this message | ||
> ahora en otro script me aparece esto
> Warning: Undefined variable: action in C:\Inetpub\wwwroot\foro\papadd.php
on
> line 12
Prueba de crear la variable vacía al principio.
> Warning: Use of undefined constant add - assumed 'add' in
> C:\Inetpub\wwwroot\foro\papadd.php on line 12
creo que add debería ir entre '', es decir:
if ($action == 'add')
> estas son las lineas 12 y 13
> if ($action == add) {
> $ip = getenv ("REMOTE_ADDR");