Undefined index:
| From: | Voisine | Date: | Wed, 02 Oct 2002 04:40:24 +0000 |
| Subject: | Undefined index: | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118531@lists.php.net to get a copy of this message | ||
Hi,
I'm learning php from a book but because of global off I have have
several "Undefined index" message! I don't want to change the default
setting in my php.ini because I want to learn the good way.
What I'm doing wrong?
Undefined index: categorie
if ($_POST['categorie'] == "New") {
Undefined index: categorie
$query = "SELECT DISTINCT animalName FROM animal WHERE
animalType='{$_REQUEST['categorie']}' ORDER BY animalName";
Undefined index: categorie
echo "<hr><b>No name in
{$_POST['categorie']}</b><hr>\n";
Undefined index: categorie
echo "<input type='hidden' name='categorie'
value='$categorie'>\n";
Regards!