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 message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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=1phn_indvType=client
 
 When it redirects I get the url minus everything after the first ampersand.
 I tried using htmlentities with no joy like so...


Hmmm... I use this all the time on a site I'm working on (part time
personal site) and I have no trouble.

header(Location: $PHP_SELF?id=$idauth=34);


- -- 
Nick Wilson //  www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE9E7h9HpvrrTa6L5oRArZUAJ9zjpmnM4yHziKzrOIYstNCar+HMgCgoFyV
aKiQ2qZDr5AIEbcQQYEtmCw=
=ubon
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] header(Location with in URL

2002-06-21 Thread Richard Baskett

I do this all the time and I just use this syntax:

header(Location: 
http://www.blah.com/phones.php?phn_indvId=1phn_indvType=client;);
exit;

And it works for me...

Rick

The greater danger for most of us is not that our aim is too high and we
miss it, but that it is too 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 redirect to a URL that has variables
 in it, ie.
 
 http://www.blah.com/phones.php?phn_indvId=1phn_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 = htmlspecialchars ($retUrl);
 
 if ($retUrl != ) {
   header(Location:  . $retUrl);
 
 Any ideas?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 h1[$returl]/h1;
exit;

Maybe that will uncover something.

Chris

Tom Beidler wrote:

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=1phn_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 = htmlspecialchars ($retUrl);

if ($retUrl != ) {
header(Location:  . $retUrl);
  



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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] header(Location  with  in URL
 
 I do this all the time and I just use this syntax:
 
 header(Location:
 http://www.blah.com/phones.php?phn_indvId=1phn_indvType=client;);
 exit;
 
 And it works for me...
 
 Rick
 
 The greater danger for most of us is not that our aim is too high and we
 miss it, but that it is too 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 redirect to a URL that has variables
 in it, ie.
 
 http://www.blah.com/phones.php?phn_indvId=1phn_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 = htmlspecialchars ($retUrl);
 
 if ($retUrl != ) {
 header(Location:  . $retUrl);
 
 Any ideas?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php