Re: [wdvltalk] location: wits end

2006-01-09 Thread Portman
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread Sheila Fenelon
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

RE: [wdvltalk] location: wits end

2006-01-09 Thread Dan Parry
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

RE: [wdvltalk] location: wits end

2006-01-09 Thread Dan Parry
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread steve miller
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

RE: [wdvltalk] location: wits end

2006-01-09 Thread Dan Parry
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread steve miller
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

RE: [wdvltalk] location: wits end

2006-01-09 Thread Dan Parry
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread steve miller
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread Portman
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

Re: [wdvltalk] location: wits end

2006-01-09 Thread Portman
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

RE: [wdvltalk] location: wits end

2006-01-09 Thread Dan Parry
:[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

[wdvltalk] location: wits end

2006-01-09 Thread steve miller
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