Maybe it is something outside the script - you said that it is identical
to other pages that work fine . . . ?
Sheila Fenelon wrote:
Did you try it with exit right after header?
Show us your latest attempt.
Sheila
steve miller wrote:
Didn't work either. This must be one of those "staring
wdvl.com
Subject: Re: [wdvltalk] location: wits end
Hi Dan.
die() and exit() stop the script, but I am getting no re-direct to
index.html. If I echo out some placeholders, I find that the script
jumps over the header statement and then stops.
For example:
if($no==1)
{
echo "2";
header
lto:[EMAIL PROTECTED]
Sent: 09 January 2006 17:03
To: wdvltalk@lists.wdvl.com
Subject: Re: [wdvltalk] location: wits end
Didn't work either. This must be one of those "staring me right in the
face" problems that has to be something simple that I just don't see :(
No error messa
ECTED]
Sent: 09 January 2006 17:00
To: wdvltalk@lists.wdvl.com
Subject: Re: [wdvltalk] location: wits end
Thanks Dan. I realized that after I fired off my first e-mail . . . but
I notice that Steve has "1" in his code instead of '1' - could that be
something?
Dan Parry wrot
mplete URLs (eg http://www.example.com/index.php)
Try that and see what happens
Dan
--
-Original Message-
From: steve miller [mailto:[EMAIL PROTECTED]
Sent: 09 January 2006 16:56
To: wdvltalk@lists.wdvl.com
Subject: Re: [wdvltalk] location: wits end
Hi Dan.
die() and exit() stop the script, but I am get
Interesting
Header does prefer complete URLs (eg http://www.example.com/index.php)
Try that and see what happens
Dan
--
-Original Message-
From: steve miller [mailto:[EMAIL PROTECTED]
Sent: 09 January 2006 16:56
To: wdvltalk@lists.wdvl.com
Subject: Re: [wdvltalk] location: wits end
No problem. Thanks for the thoughts.
On Jan 9, 2006, at 11:52 AM, Portman wrote:
PLEASE DISREGARD MY LAST E-MAIL!
Eek!
steve miller wrote:
Hi all.
I am at my wits end trying to figure out why the following php does
not work:
switch ($no)
{
case "1":
echo "1";
header ("Location: index.h
ED]
Sent: 09 January 2006 16:52
To: wdvltalk@lists.wdvl.com
Subject: Re: [wdvltalk] location: wits end
I don't know php but this is my stab in the dark: you have a colon at
the end of case "1", not a semicolon. In Perl you need semicolons at the
end of each line. Not sure if it is
Sent: 09 January 2006 15:56
To: wdvltalk@lists.wdvl.com
Subject: [wdvltalk] location: wits end
Hi all.
I am at my wits end trying to figure out why the following php does not
work:
switch ($no)
{
case "1":
echo "1";
header ("Location: index.html?xx=2");
echo "2&quo
PLEASE DISREGARD MY LAST E-MAIL!
Eek!
steve miller wrote:
Hi all.
I am at my wits end trying to figure out why the following php does
not work:
switch ($no)
{
case "1":
echo "1";
header ("Location: index.html?xx=2");
echo "2";
break;
}
I set $no to equal 1, and the page will not re-direct
I don't know php but this is my stab in the dark: you have a colon at
the end of case "1", not a semicolon. In Perl you need semicolons at the
end of each line. Not sure if it is the same in php.
Riva
steve miller wrote:
Hi all.
I am at my wits end trying to figure out why the following php
:[EMAIL PROTECTED]
Sent: 09 January 2006 15:56
To: wdvltalk@lists.wdvl.com
Subject: [wdvltalk] location: wits end
Hi all.
I am at my wits end trying to figure out why the following php does not
work:
switch ($no)
{
case "1":
echo "1";
header ("Location: index.html?xx=2&quo
Hi all.
I am at my wits end trying to figure out why the following php does not
work:
switch ($no)
{
case "1":
echo "1";
header ("Location: index.html?xx=2");
echo "2";
break;
}
I set $no to equal 1, and the page will not re-direct to index.html. I
also tried:
if($no==1)
{
header ("Locatio
13 matches
Mail list logo