|
Posted by Jochem Maas on 03/25/05 02:34
Jay Blanchard wrote:
> /* send the errors to the interface and exit*/
> if('' !== $errorsReported){
> for($i = 0; $i < count($errorsReported); $i++){
> echo $errorsReported[$i];
> }
> } else {
> /* reload the empty interface */
a quick echo statement here to check that this block is running when
you expect it to might tell you something... but you have probably
already plastered your code with echo/print statements to determine the
flow :-)
> header("Location: adminTicketMgmtCreationForm.php");
> }
> The above does not work on the else statement. If $errorsReported is
> blank the header statement does not work, the script just exits. I have
> had a long day and I may not be seeing something correctly, can anyone
> see an error with this? If so, can you tell me where I am going wrong?
>
having read the other replies to this post I'm a little perplexed...
I was wondering if adminTicketMgmtCreationForm.php isn't crashing?
I sometimes get into a situation where an include file has a syntax
error that causes complete failure (blank screen, nothing in log), I have
had the same on occasion with require_once() statements that fail....
so maybe the redirect is working only the destination page is silently dying
on you....
I assume that you are not outputting anything before the call to header.
Navigation:
[Reply to this message]
|