Re: resubmit form after validation error

From: Date: Tue, 23 Jun 2009 15:37:30 +0000
Subject: Re: resubmit form after validation error
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-294457@lists.php.net to get a copy of this message
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

« previous php.general (#294457) next »