Re: if statement in an elseif block with a preceeding exit statement
- From: JRough <jlrough@xxxxxxxxx>
- Date: Wed, 30 Jul 2008 15:32:22 -0700 (PDT)
On Jul 30, 2:02 pm, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
All the crappy waffle deleted:Paul
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;
}
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
.
- Follow-Ups:
- References:
- if statement in an elseif block with a preceeding exit statement
- From: JRough
- Re: if statement in an elseif block with a preceeding exit statement
- From: Paul Lautman
- if statement in an elseif block with a preceeding exit statement
- Prev by Date: Re: mail questions
- Next by Date: Re: if statement in an elseif block with a preceeding exit statement
- Previous by thread: Re: if statement in an elseif block with a preceeding exit statement
- Next by thread: Re: if statement in an elseif block with a preceeding exit statement
- Index(es):
Relevant Pages
|