Nothing really wrong with the code, just different error reporting set.
But, as a couple of cents worth from someone that's learnt the hard way, it is
usually preferable to do something like
if (!isset($submit)){...} and handle the negative condition first. (Of course
this won't be the case if you
anything wrong with the code - its just that for
debugging, PHP has E_ALL that tells you things you probably don't need to
know (like a variable that isn't defined).
-Original Message-
From: Jerry Nelson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 2:20 PM
To: [EMAI
We have two developers that are just learning PHP. Working with the
following code I do not have any problems. However, the other person gets
the error :
Warning: Undefined variable: submit in .
The code is :
query($sql);
echo "Thank You, come again\n";
}else{
?>
Acco