Re: Preguntar si se posteo una variable
| From: | Luis Vega | Date: | Fri, 06 Jul 2007 19:51:08 +0000 |
| Subject: | Re: Preguntar si se posteo una variable | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-61054@lists.php.net to get a copy of this message | ||
El 6/07/07, Nahuel Garcia <nhlgrc@adinet.com.uy> escribió:
$id=$_POST['id']; Esto me da error si no le posteo 'id', pero en ocasiones no se la posteo como evito que me aparezca el error?Podrias probar con: if (isset($variable)){
... . .}
-- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Luis Vega M. Linux Registered User #356394 - counter.li.org Sitio Personal: http://fodsite.wordpress.com Green Day: http://www.greendayfod.net <fodsite AT gmail DOT com>