Re: [PHP-WIN] Problem with submit

2001-05-10 Thread Tom Mathews
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

RE: [PHP-WIN] Problem with submit

2001-05-09 Thread Schulz, Evan
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

[PHP-WIN] Problem with submit

2001-05-09 Thread Jerry Nelson
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