Re: if statement in an elseif block with a preceeding exit statement



On Jul 30, 2:02 pm, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
All the crappy waffle deleted:
You have a missing " on your header line, here it is corrected:
if($_POST['assign']=='Open in Excel'){
Header("Location:http://xxx.com/fakerockridge/tracing_reportsXL.php?param=".$_POST['redirect']."&id=['id']");
exit;

}
Paul
You are right there was a missing ' " '

However, there is still a syntax problem with the if inside the elseif
which was my original question.


}elseif($_POST['redirect']&&$_POST['redirect']!=$_SERVER['PHP_SELF']){
Header("Location: ".$_POST['redirect'].".php?id=".$_POST['id']);
exit;

if($_POST['assign']=='Open in Excel'){
Header("Location:
http://allcapitalrailmanagement.com/fakerockridge/tracing_reportsXL.php?param=".$_POST['redirect']."&id=['id']);
exit;
}
}
Janis
.



Relevant Pages

  • Re: BGS Sign Maintenance
    ... One has the top third missing, the other has the top 1/4 ... Both missing parts had the route shields. ... "streaks" of reflectivity missing (a couple of those on I-85 near the ... coming east on I-40, you see an exit for I-85 south, ...
    (misc.transport.road)
  • Re: gcc: "warning: `noreturn function does return"
    ... >> can reference it directly. ... So what am I missing? ... aren't calling _exit you are calling __libc__exit, ...
    (comp.unix.programmer)
  • Re: ICHDEX01 question
    ... missing a huge amount of historical info. ... I must have misread the exit ... I know that DES is a better protection mechanism than masking. ...
    (bit.listserv.ibm-main)
  • Re: task manager damaged
    ... The tabs at the top ... | are missing, along with the red x exit in the upper right corner. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Can Constants Be Used Inside Header()?
    ... and you'll see the exact argument you are passing to header(). ... BTW, perhaps ... you are missing an exit() somewhere after the redirection. ...
    (comp.lang.php)