Re: parse error

From: Date: Tue, 19 Nov 2002 13:04:38 +0000
Subject: Re: parse error
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17035@lists.php.net to get a copy of this message
zeus, I notice you start your code with <?PHP and yet you use "short tags" throughout the script - has "short tags" been enabled in your environment? If not you have to use with <?php - not <? That else($submit) thing is a nonsense zeus - surely! - even if it didn`t produce a parsing error (and it will) I cannot for the life of me see what you hope to achieve by this construct. All you are trying to do is .... if $submit is true then do these things otherwise (if it is not true) then do these other things. if ($submit == true) { do this stuff; } else { do some other stuff; } Whilst your code is a festival of swapping into and out of php sometimes for the sake of just one character or curly brace it is structurally Ok as far as I can see except for that else($submit) thing - just get rid of it like Robert said! > On Tue, 19 Nov 2002, zeus wrote: > > > Nope! i try that one too, but the parse error thing still exist.... > > > > > > Howard, Robert P wrote: > > > > >change your else($submit) statement to else > > >

« previous php.windows (#17035) next »