Re: [PHP] header("Location:...") fails

2010-01-14 Thread haliphax
On Wed, Jan 13, 2010 at 7:02 PM, Shawn McKenzie wrote: > Robert Cummings wrote: > > Just make your life easy and create a redirect() function that generates > > the header instruction, makes a relative URL into an absolute URL and > > does the exit call. Then you just need to do: > > > > redirect(

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Shawn McKenzie
Robert Cummings wrote: > Just make your life easy and create a redirect() function that generates > the header instruction, makes a relative URL into an absolute URL and > does the exit call. Then you just need to do: > > redirect( 'target.php' ); > > So much simpler :) > > Cheers, > Rob

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Robert Cummings
Paul M Foster wrote: On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcod

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Paul M Foster
On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: > Here is a snippet of code that is going to be the death of me: > > > // Create a new project > $projectcode = strtoupper(addslashes($_POST['projectcode'])); // p

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Andrew Ballard
On Wed, Jan 13, 2010 at 2:39 PM, Richard S. Crawford wrote: > Now, even if $numprojects is 1, 2, 3, etc., the header() command is not > executed. Strangely, a header("Location") command later on in the script > *is* executed. I've output the value of $numprojects, so I know that it's > greater tha

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Bruno Fajardo
2010/1/13 Richard S. Crawford > > Here is a snippet of code that is going to be the death of me: > > > //  Create a new project > $projectcode = strtoupper(addslashes($_POST['projectcode']));   //  project > code > > //  Make sure the pr

[PHP] header("Location:...") fails

2010-01-13 Thread Richard S. Crawford
Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcode'])); // project code // Make sure the project code is unique if (!$existingproject = my

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Jim Lucas
Rene Veerman wrote: Andrew Ballard wrote: I'll take the simple answer and say neither script IS being called? OK, I'll go back to my corner now. Andrew [Geesh - I take the time to send out a sarcastic message and forget to send it to the list.] The scripts are called, because i can see th

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Rene Veerman
Andrew Ballard wrote: I'll take the simple answer and say neither script IS being called? OK, I'll go back to my corner now. Andrew [Geesh - I take the time to send out a sarcastic message and forget to send it to the list.] The scripts are called, because i can see the data coming back fr

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Andrew Ballard
On Thu, Jan 8, 2009 at 7:17 PM, Rene Veerman wrote: > Hi, i'm doing a forward to another server (somehost.com/2.php) by using > > header("Location: http://someserver.com/script/1.php";); > > But on neither servers do i get hits in the apache access log for either > script being called. > > Any ide

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Jim Lucas
Rene Veerman wrote: > Hi, i'm doing a forward to another server (somehost.com/2.php) by using > > header("Location: http://someserver.com/script/1.php";); > > But on neither servers do i get hits in the apache access log for either > script being called. > > Any ideas? > > Make sure you are l

[PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Rene Veerman
Hi, i'm doing a forward to another server (somehost.com/2.php) by using header("Location: http://someserver.com/script/1.php";); But on neither servers do i get hits in the apache access log for either script being called. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 11:16 am, Ross wrote: > any reason why this should be? Things that could go wrong: 1. output_buffering can make "header" work when it shouldn't because it will buffer HTML (or other) output and then it "works" 2. Location: URLs are supposed to be full-blown URLs. Maybe it

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Dave Goodchild
Provide some code...?

[PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Ross
any reason why this should be? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header("Location: ... or Header("Refresh: 0;...

2006-05-16 Thread Richard Lynch
On Tue, May 16, 2006 10:48 am, Kevin Davies wrote: > header ("Refresh: 0; > URL=cart.php?action=add&id=$reference&c=$cat&p=$page"); > exit; I don't think this is a "real" header -- just some made-up crapola from MS that "works" on most browsers, from the bully-pulpit principle. You'd have to read

[PHP] Header("Location: ... or Header("Refresh: 0;...

2006-05-16 Thread Kevin Davies
Hi All, I'd really appreciate your advice with this one... I have a cart. Visitors can browse a catalogue, click 'Add to cart', and are taken to the shopping cart with the new item added... This is working perfectly for 99.9% of visitors, although 2 separate support calls have reported they don

Re: [PHP] header, location: mailto abd browsers

2005-09-07 Thread Jasper Bryant-Greene
Bernard Perrot wrote: Mikey wrote: Your script doesn't appear to be trying to do a re-direct, but rather open a client side e-mail - if you want to do this, then you will need to use JavaScript on the client side. Yes it redirect, because PHP add a 302 response header in this case. And the

Re: [PHP] header, location: mailto abd browsers

2005-09-07 Thread Bernard Perrot
Mikey wrote: Your script doesn't appear to be trying to do a re-direct, but rather open a client side e-mail - if you want to do this, then you will need to use JavaScript on the client side. Yes it redirect, because PHP add a 302 response header in this case. And the client-side email is op

Re: [PHP] header, location: mailto abd browsers

2005-09-07 Thread Mikey
Bernard Perrot wrote: hello, I have a little problem with this kind of script : mailto:$addr";); } mailto("[EMAIL PROTECTED]"); ?> When called from an html page, it open correctly un MUA from mailing, but with some browser (mozilla for example), the calling page is still displayed, and wit

[PHP] header, location: mailto abd browsers

2005-09-07 Thread Bernard Perrot
hello, I have a little problem with this kind of script : mailto:$addr";); } mailto("[EMAIL PROTECTED]"); ?> When called from an html page, it open correctly un MUA from mailing, but with some browser (mozilla for example), the calling page is still displayed, and with some others (firefox f

Re: [PHP] Header Location redirection parameters fail to redirect

2005-05-13 Thread Deep
Hi, If the parameters are available at the url of mysite.com. Then the parameters should be available there in the page to echo. Instead of $_REQUEST try $_GET Try using this.. mysite.com Homepage "; $lang=$_GET['lang']; $ctry=$_GET['ctry']; echo "Country= ".$ctry." Language= ".$lang; ?>

[PHP] Header Location redirection parameters fail to redirect

2005-05-10 Thread Olav Drageset
I want url mysite.no to redirect to mysite.com with parameters lang=no and ctry=no, but the parameters do not follow the redirection. mysite.no/index.php is http://mysite.com/index.php?lang=no&ctry=no' ) ; exit; ?> mysite.com/index.php is mysite.com Homepage "; $lang = $_REQUEST['lang']; $ctry

Re: [PHP] Header location, redirection loses parameters,

2005-05-10 Thread Prathaban Mookiah
:16:33 +0200 Subject: [PHP] Header location, redirection loses parameters, > I have several URLs that I want to point to the same site with a > different parameter. I try to do this by redirecting all to the > same location, by > > hader ("Location: > http://mysi

Re: [PHP] Header location, redirection loses parameters,

2005-05-10 Thread Richard Lynch
On Mon, May 9, 2005 3:16 pm, Olav Draageset said: > I have several URLs that I want to point to the same site with a different > parameter. I try to do this by redirecting all to the same location, by > > hader ("Location: http://mysite.com/index.php?var1=value1&var2=value2";); > exit; > ?> I wou

[PHP] Header location, redirection loses parameters,

2005-05-09 Thread Olav Draageset
I have several URLs that I want to point to the same site with a different parameter. I try to do this by redirecting all to the same location, by http://mysite.com/index.php?var1=value1&var2=value2";); exit; ?> The redirection is done properly, but variables are not sent. Can anyone say what

Re: [PHP] header("Location: page.php target=_parent")?????

2005-03-25 Thread Josh Whiting
> How should I formulate the header function to replace the current frameset > page with a new one? I have tried a combination of header("Location: > page.php target=_parent"); but I get an error message saying the page does > not exist. > > Also, can I save a frameset page with a .php extensio

Re: [PHP] header("Location: page.php target=_parent")?????

2005-03-25 Thread Brian V Bonini
On Fri, 2005-03-25 at 08:57, Jacques wrote: > How should I formulate the header function to replace the current frameset > page with a new one? I have tried a combination of header("Location: > page.php target=_parent"); but I get an error message saying the page does > not exist. > > Also, ca

Re: [PHP] header("Location: page.php target=_parent")?????

2005-03-25 Thread maillists
On Friday 25 March 2005 08:57, Jacques wrote: > Also, can I save a frameset page with a .php extension? I have tried it > out and it seems to work. Maybe perhaps I should not do this as there may > be some implications later on??? I have not had any problems with .php ext frameset pages. I hav

[PHP] header("Location: page.php target=_parent")?????

2005-03-25 Thread Jacques
How should I formulate the header function to replace the current frameset page with a new one? I have tried a combination of header("Location: page.php target=_parent"); but I get an error message saying the page does not exist. Also, can I save a frameset page with a .php extension? I have

[PHP] Header location open into a new window?

2004-12-11 Thread Justin Wilkins
Is there a way in the current code below to make my $go_to_address go to a webpage in a new link -- instead of embedded in an iframe? In others words, can Header(Location: open in a new window? 1) { $content = 'https://swww.google.com/servlet/com.google.framework.servlets.BGSeamles

Re: [PHP] header("Location: ") problem

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, is there a way of setting a target property for header("Location: thanks.htm")? my form is in an iframe so when i hit submit, my php page redirects the user to thanks.htm but this is rendered within the iframe not in a fresh page. No, you have to use target in the form

Re: [PHP] header("Location: ") problem

2004-09-22 Thread John Nichel
[EMAIL PROTECTED] wrote: hi, is there a way of setting a target property for header("Location: thanks.htm")? No. Not in php. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header("Location: ") problem

2004-09-22 Thread luke
hi, is there a way of setting a target property for header("Location: thanks.htm")? my form is in an iframe so when i hit submit, my php page redirects the user to thanks.htm but this is rendered within the iframe not in a fresh page. any ideas? thanks, luke. -- PHP General Mailing List (htt

RE: [PHP] header(Location: question

2004-03-01 Thread Chris Sandy
Your directing the client to another site. So yes this will work. -Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 6:11 PM To: [EMAIL PROTECTED] Subject: [PHP] header(Location: question when you use a command like this: header("Location:

[PHP] header(Location: question

2004-02-29 Thread John
when you use a command like this: header("Location: http://www.highbandwidhtmirror.com/videos/download.mpg";); Is the user downloading off the mirror site or is your server downloading from the mirror and passing on to the end user. I want to save bandwidth by having mirror urls of funny videos, s

Re: [PHP] Header+location+sessions

2004-02-16 Thread Jason Wong
On Tuesday 17 February 2004 01:57, Natalia Sensini wrote: > I've been using > header("Location: http://www.example.com/";); > before writing this sentence i create a session and > register a session var, but when i go to the redirected page the session > var doesn't exist. session_write_close() be

[PHP] Header+location+sessions

2004-02-16 Thread Natalia Sensini
I've been using header("Location: http://www.example.com/";); before writing this sentence i create a session and register a session var, but when i go to the redirected page the session var doesn't exist. Someone could help me?

Re[2]: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Richard Davey
Hello rogue, Monday, December 1, 2003, 10:39:02 PM, you wrote: r> echo looks fine (no error in the URL). I am stumped. Is there anything r> besides output to the screen before header() that breaks it? Other than browser incompatibility, not usually. You can use the following to determine if a h

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Tom Rogers
Hi, Tuesday, December 2, 2003, 7:17:58 AM, you wrote: r> Hi all, r> I have this in a template: r> $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; r> header("Location: $redirect"); r> Only, nothing happens when this code is executed. Nothing. It gets r> completely ignored. r> I even

RE: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris W. Parker
rogue on Monday, December 01, 2003 2:39 PM said: > echo looks fine (no error in the URL). I am stumped. Is there anything > besides output to the screen before header() that breaks it? Create a file with only the following code and see what happens. http://www.goog

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Curt Zirzow
* Thus wrote rogue ([EMAIL PROTECTED]): > Okay. I reworked the code a bit, but still no go. > > Here is what I have: > > $redirect = "http://"; . $_SERVER['HTTP_HOST'] . > "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; > error_reporting(E_ALL); > echo "Location: $redirect"; > header(

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > echo looks fine (no error in the URL). I am stumped. Is there > anything besides output to the screen before header() that breaks > it? I'm sure there are lots of things, but I can't think of why your code would not work. You did remove the echo before tryin

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
hi again, echo looks fine (no error in the URL). I am stumped. Is there anything besides output to the screen before header() that breaks it? thanks On Dec 1, 2003, at 5:13 PM, Chris Shiflett wrote: --- rogue <[EMAIL PROTECTED]> wrote: $redirect = "http://"; . $_SERVER['HTTP_HOST'] . "/cm/clie

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > $redirect = "http://"; . $_SERVER['HTTP_HOST'] . > "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; > error_reporting(E_ALL); > echo "Location: $redirect"; > header("Location: $redirect"); I meant to try using a full URL first, then use echo if it

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
Okay. I reworked the code a bit, but still no go. Here is what I have: $redirect = "http://"; . $_SERVER['HTTP_HOST'] . "/cm/clients/viewclient.php?id={$_REQUEST['id']}&foo=bar"; error_reporting(E_ALL); echo "Location: $redirect"; header("Location: $redirect"); I get NO errors at all :( It was

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> wrote: > $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; > header("Location: $redirect"); > > Only, nothing happens when this code is executed. I would try two things, in this order: 1. Use a full URL. A Location header is defined in the specification as

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Curt Zirzow
* Thus wrote rogue ([EMAIL PROTECTED]): > > $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; > header("Location: $redirect"); > > Only, nothing happens when this code is executed. Nothing. It gets > completely ignored. > > I even tried: > > $redirect = "viewclient.php?id={$_REQUEST['

[PHP] header("Location: page.php") not redirecting

2003-12-01 Thread rogue
Hi all, I have this in a template: $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; header("Location: $redirect"); Only, nothing happens when this code is executed. Nothing. It gets completely ignored. I even tried: $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; echo $red

Re: Fw: [PHP] $header = "Location:........" being ignored!

2003-01-22 Thread Thomas Seifert
'] ) > {header("Location: loginfailed.html"); exit; > } > - Original Message - > From: "Shams" <[EMAIL PROTECTED]> > To: <> > Sent: Tuesday, January 21, 2003 3:48 AM > Subject: [PHP] $header = "Location:

Fw: [PHP] $header = "Location:........" being ignored!

2003-01-22 Thread Peter Hutnick
Rick Emery said: > if ( $_POST['passwd'] != $db['password'] ) > {header("Location: loginfailed.html"); exit; > } > - Original Message - > From: "Shams" <[EMAIL PROTECTED]> > To: <> > Sent: Tuesday, January 21,

Fw: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Rick Emery
if ( $_POST['passwd'] != $db['password'] ) {header("Location: loginfailed.html"); exit; } - Original Message - From: "Shams" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 21, 2003 3:48 AM Subject: [PHP] $header = "Locati

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Chris Shiflett
--- Shams <[EMAIL PROTECTED]> wrote: > if ( $_POST['passwd'] != $db['password'] > {header("Location: loginfailed.html"); > } You never add the closing parenthesis to your if statement. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Neil Freeman
Looks like you're missing a closing bracket on the IF statement as well. Neil Shams wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 17th January 2003 ***

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Tom Rogers
Hi, Tuesday, January 21, 2003, 7:48:04 PM, you wrote: S> Hi Group, S> I basically have some simple code such as: S> == S> if ( $_POST['passwd'] != $db['password'] S> {header("Location: loginfailed.html"); S> } S> //else S> $header = "Locatio

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Stain
try with exit() after header(). bye, stain. Il 10:48, martedì 21 gennaio 2003, Shams ha scritto: > Hi Group, > > I basically have some simple code such as: > > == > > if ( $_POST['passwd'] != $db['password'] > {header("Location: loginfailed.htm

[PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Shams
Hi Group, I basically have some simple code such as: == if ( $_POST['passwd'] != $db['password'] {header("Location: loginfailed.html"); } //else $header = "Location: success.html"; == however,

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
Yes, I have an exit() immediately following header... Could these statements in any way affect the session? Or session update? "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wednesday 20 November 2002 06:36, Baumann Reto wrote: > > Hi all > > >

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
This does work... No problem at all... The BIG problem is that it has to have something to do with the environment, as the error is not always there. Only if a certain combination of POST/GET request and or browsers as well as session operations occur. Bur figuring out a certain logic is nearly i

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
It's mainly MSIE 5.0 for MacOS or MSIE 5.5 for Win9x "Bigdog" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What browsers are having the problems? > > On Tue, 2002-11-19 at 15:36, Baumann Reto wrote: > > Hi all > > > > Does somebody know if there is a potentia

Re: [PHP] Header Location not working

2002-11-19 Thread Jason Wong
On Wednesday 20 November 2002 06:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > Instead of the redirection, the sam

Re: [PHP] Header Location not working

2002-11-19 Thread Chris Shiflett
--- Baumann Reto <[EMAIL PROTECTED]> wrote: > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? Try this code: http://www.google.com/";); ?> If this does not work, let us know. Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Header Location not working

2002-11-19 Thread Ernest E Vogelsinger
At 23:36 19.11.2002, Baumann Reto said: [snip] >Hi all > >Does somebody know if there is a potential problem with >Header("Location: "); >not working properly? > >I have a redirection, but it seems that on some browser, this doesn't work. >Instead of

Re: [PHP] Header Location not working

2002-11-19 Thread Leif K-Brooks
Are you using an exact path or a relative url (such as somepage.php)? It should be absolute (such as http://someserver/somepage.php). Baumann Reto wrote: Hi all Does somebody know if there is a potential problem with Header("Location: "); not working properly? I have a redirection, but

Re: [PHP] Header Location not working

2002-11-19 Thread BigDog
What browsers are having the problems? On Tue, 2002-11-19 at 15:36, Baumann Reto wrote: > Hi all > > Does somebody know if there is a potential problem with > Header("Location: "); > not working properly? > > I have a redirection, but it seems that on some browser, this doesn't work. > I

[PHP] Header Location not working

2002-11-19 Thread Baumann Reto
Hi all Does somebody know if there is a potential problem with Header("Location: "); not working properly? I have a redirection, but it seems that on some browser, this doesn't work. Instead of the redirection, the same page is requested again! I'm also using sessions and html-post reque

RE: [PHP] header("Location with & in URL

2002-06-24 Thread Lazor, Ed
Have you tried this? header("Location: $retURL"); ? > -Original Message- > > $retUrl = htmlspecialchars ($retUrl); > > if ($retUrl != "") { > header("Location: " . $retUrl); > > Any ideas? This messa

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
Nope, doesn't work. Maybe it's something with the server/PHP setup? > From: Richard Baskett <[EMAIL PROTECTED]> > Date: Fri, 21 Jun 2002 16:35:11 -0700 > To: Tom Beidler <[EMAIL PROTECTED]>, PHP General > <[EMAIL PROTECTED]> > Subject: Re: [PHP] hea

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Chris Shiflett
Tom, Include the $returl variable within the quotes, like this: header("Location: $returl"); If that doesn't work, add these two lines just before the header() function: echo "[$returl]"; exit; Maybe that will uncover something. Chris Tom Beidler wrote: >I'm trying to use header("Location

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Richard Baskett
low and we reach it." - Michelangelo > From: Tom Beidler <[EMAIL PROTECTED]> > Date: Fri, 21 Jun 2002 16:22:20 -0700 > To: php list <[EMAIL PROTECTED]> > Subject: [PHP] header("Location with & in URL > > I'm trying to use header("Location to r

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Tom Beidler declared > I'm trying to use header("Location to redirect to a URL that has variables > in it, ie. > > http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client > > When it redirects I get the url minus everything a

[PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
I'm trying to use header("Location to redirect to a URL that has variables in it, ie. http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client When it redirects I get the url minus everything after the first ampersand. I tried using htmlentities with no joy like so... $retUrl = htmlspeci

Re: [PHP] header location redirect to frameset target

2002-04-02 Thread Adam Voigt
I think what your looking for is "_new", but I'm not sure if you can do it in what I guess your saying is a meta refresh, I know you can as "target="_new"" in a href. Adam Voigt [EMAIL PROTECTED] On Tue, 02 Apr 2002 10:42:19 -0800, Tom Beidler <[EMAIL PROTECTED]> wrote: > Can you specify a frame

[PHP] header location redirect to frameset target

2002-04-02 Thread Tom Beidler
Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List (http://www.php.ne

RE: [PHP] header("Location:") problem with Netscape

2002-03-14 Thread Matt Schroebel
It's not $PHP_SELF that's the issue here -- well it was probably blank because either register_globals is off or you were in a function and didn't global it. The real trouble is that. IE < v6.0 is forgiving and if the action="" is blank sends the request to the current page. So you feel comfy

Re: [PHP] header("Location:") problem with Netscape

2002-03-14 Thread Steven Walker
Jeff, I just had this problem! Using $PHP_SELF did not work with Netscape 4.7 for some reason. I was using it in form submissions and kept getting the error 'Method Not Allowed'. My fix was simple, I just hard coded the action url since. If you really need $PHP_SELF, I don't know what the fix

[PHP] header("Location:") problem with Netscape

2002-03-14 Thread Jeff Bearer
I'm working on a app that uses the header("Location") is the middle of the file, but since I'm using output buffering it shouldn't matter. The application works fine in Mozilla, Konqueror, and IE, but not in Netscape 4 or 6. I don't get the error that the "headers have already been written" erro

RE: [PHP] header ("Location: URL");

2002-02-21 Thread Dave
L PROTECTED]] >Sent: Thursday, February 21, 2002 8:23 AM >To: 'Php-General (E-mail)' >Subject: [PHP] header ("Location: URL"); > > >Hello, > >is there any possibility of redirecting a request URL using header:Location >and openning the requested URL in a n

Re: [PHP] header ("Location: URL");

2002-02-21 Thread Dennis Moore
Why not use javascript to launch a new window? /dkm - Original Message - From: "Ali" <[EMAIL PROTECTED]> To: "'Php-General (E-mail)'" <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 8:23 AM Subject: [PHP] header ("Location: UR

[PHP] header ("Location: URL");

2002-02-21 Thread Ali
Hello, is there any possibility of redirecting a request URL using header:Location and openning the requested URL in a new window linke target="blank" in html. Thank you. Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header("Location: question

2002-01-16 Thread val petruchek
> This works > header("Location: http://www.foo.com/data/register.php?exist=1";); > How can I pass exist value as parameter ??? If i understand you right like this: header("Location: http://www.foo.com/data/register.php?exist=$exist";); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua ma

[PHP] header("Location: question

2002-01-16 Thread Simos Varelakis
Hello everybody This works header("Location: http://www.foo.com/data/register.php?exist=1";); How can I pass exist value as parameter ??? Tia SImos

[PHP] header("Location:...") much faster then http-equiv="refresh"? too fast?

2001-11-21 Thread Avi Schwartz
Hi, I have a strange problem. I have a page that displays a list of records. When the user clicks on the delete link by one of the records, a php script is taking care to delete that specific record and then redirects back to the record list. I use PEAR::DB with MySQL. When I use header("L

[PHP] header("Location: ...") correct implementation

2001-11-04 Thread John Steele
Hello, After seeing multiple message concerning the Location response-header using relative URI's, and having to change this in multiple open-source projects, I'd like to point out that the correct behaviour only allows ABSOLUTE URI's. This may work on certain clients with a relative URI,

[PHP] header("Location:);

2001-10-30 Thread Alberto
Ok, it works fine for me, i can redirection, but I don't want the browser to load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I know i can use include('a.php') or require('a.php') but I'm sure theres a way to say php parser to run one or another script without "changing URL"

[PHP] header(Location:...) is redirect: looking for full link

2001-09-08 Thread Chrisy
hi, The long explanation is below the summary. SUMMARY page1.php Header(location:page2.php) page2.php HTML link to page3.php page3.php REFERER=page1.php But in page3 i WANT to see page2.php as REFERER. So i suppose i must change something in page1. But what? XXX

[PHP] Header Location problem with PHP as CGI

2001-05-19 Thread Bert
Hello, I'm desperate here... I hope this question hasn't been asked a million times before (I sure did not find an answer in the archives) I'm developing a site that runs perfectly on a surver with the PHP module in apache. The problem is that the site will be hosted on a server with PHP as CGI

Re: [PHP] header:(location) error

2001-03-17 Thread Brett
> Brett, I only have conditional logic above my header() call... this page is > processing form input and does a redirect based on the result? Will this not > work? > If there is a single empty line above your first http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: [PHP] header:(location) error

2001-03-17 Thread Data Driven Design
Do you have any white space outside of your tags? That is considered as output by the parser. - Original Message - From: Stas Newdel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 17, 2001 6:56 AM Subject: Re: [PHP] header:(location) error > Bre

Re: [PHP] header:(location) error

2001-03-17 Thread Stas Newdel
Brett, I only have conditional logic above my header() call... this page is processing form input and does a redirect based on the result? Will this not work? Thank you [EMAIL PROTECTED] ("Brett") wrote in <02b401c0aea2$34676460$e1214ed8@bcnu>: > >> I am receiving the following error from m

Re: [PHP] header:(location) error

2001-03-16 Thread Brett
> I am receiving the following error from my app, and I'd be gratefull if > somebody would point out the usual cause of it. I am doing a redirect > based on a form validation routine. Thank you. > > Warning: Cannot add header information - headers already sent in > /usr/home/stas/html/cathedral

[PHP] header:(location) error

2001-03-16 Thread stas
Hello, I am receiving the following error from my app, and I'd be gratefull if somebody would point out the usual cause of it. I am doing a redirect based on a form validation routine. Thank you. Warning: Cannot add header information - headers already sent in /usr/home/stas/html/cathedral/scr

Re: [PHP] Header Location Frame Question

2001-02-23 Thread Richard Lynch
> Is it possible to target a frame in the Location: of > a header? Sorry if this has been brought up a > million times before. No. You *can* pass enough information to the FRAMESET page that it will load the right content for each sub-FRAME. http://yoursite.com/main.php?nav=a.php&top=b.php&cont

[PHP] Header Location Frame Question

2001-02-23 Thread Jeff Oien
Is it possible to target a frame in the Location: of a header? Sorry if this has been brought up a million times before. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

RE: [PHP] Header ("location: test.php");

2001-02-20 Thread Hoover, Josh
The answer is yes, you need to pass along your form variables. You could do this with the following: Hope that helps you out some. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledg

Re: [PHP] Header ("location: test.php");

2001-02-20 Thread Nuno Silva
Christopher Allen wrote: > Hello, > I am using the Header call in a script that has multiple submit buttons: > > if ($submit =1) > { > Header (location: test1.php); > } > if ($submit ==2) > { > Header(location: test2.php); > } > > Should not the form varaibles be passed

[PHP] Header ("location: test.php");

2001-02-20 Thread Christopher Allen
Hello, I am using the Header call in a script that has multiple submit buttons: if ($submit =1) { Header (location: test1.php); } if ($submit ==2) { Header(location: test2.php); } Should not the form varaibles be passed along to each of these pages respectively? I have a

Re: [PHP] Header Location Question

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 13:27, Jeff Oien wrote: > I have the code below within a larger web page which is > like a portal. When I submit the form, I get this message: > > > Warning: Cannot add header information - headers already sent by (output > started at c:\apache\htdocs\index1.php3:9) >

[PHP] Header Location Question

2001-02-06 Thread Jeff Oien
I have the code below within a larger web page which is like a portal. When I submit the form, I get this message: Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\index1.php3:9) Can I get it to take me to the BigCharts site a