Re: resubmit form after validation error

From: Date: Tue, 23 Jun 2009 15:42:50 +0000
Subject: Re: resubmit form after validation error
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-294458@lists.php.net to get a copy of this message
On Tue, Jun 23, 2009 at 11:37 AM, Shawn McKenzie<nospam@mckenzies.net> wrote: > PJ wrote: >> Caner Bulut wrote: >>> Hi PJ, >>> >>> You can use the structure following >>> >>> $bid = htmlentities($_GET['id']); >>> >> the code below >>> if(empty($bid) { >>> $bid=0; >>> } >> produces an empty screen with no error messages... >> I have been having some trouble understanding "empty()" -- it doesn't >> seem to want to work for me in any situation > > YOU, always need to have error_reporting on and display errors on, and > also be logging errors so that you can see parse errors in the log. > Always check the log after a "empty screen".  I've seen many posts from > you where you get a blank, empty, white screen.  This is most always a > parse error!.  Get an editor that will show you bad syntax like the > above.  It is a freaking parse error because you don't have matched > parentheses! > > -- > Thanks! > -Shawn > http://www.spidean.com > You mean when PHP parses my code, it can't just tell what I meant and do it? I mean, web browsers aren't that picky. Geesh! :-P Andrew

« previous php.general (#294458) next »