RE: [PHP] querystrings passed in header("Location: n") ?
| From: | Rick Emery | Date: | Wed, 13 Feb 2002 17:15:27 +0000 |
| Subject: | RE: [PHP] querystrings passed in header("Location: n") ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84612@lists.php.net to get a copy of this message | ||
This is frustrating, because I have used header("location") with parameters
and it has worked.
-----Original Message-----
From: Erik Price [mailto:pricee@hhbrown.com]
Sent: Wednesday, February 13, 2002 11:12 AM
To: Rick Emery
Cc: PHP
Subject: Re: [PHP] querystrings passed in header("Location: n") ?
On Wednesday, February 13, 2002, at 10:37 AM, Rick Emery wrote:
> What error did you receive? What was displayed? Please show your
> code; I
> hope there was no line break as shown below. Unfortunately, my mail
> client
> breaks lines after about 40 cchars.
Well, to post the actual code would be quite difficult, as there is a
mess of includefiles involved. Basically, I received no error -- just
that when I use the header() function and include a querystring in the
argument to header(), there is no querystring in the URL of the next
page. Someone who is familiar with the low-level nuts and bolts of the
PHP engine should know whether or not querystrings are even valid in the
header() function.
for example: 'header("Location: http://n.com/n.php?n=1")'
Next page's URL: 'http://n.com/n.php'
Can any of the PHP development lurkers on this list comment on this?
> I agree with you that it is handled as any string.
You mean that I am correct? Or that you think I should be correct?
(not trying to sound insolent, just trying to nail down what's being
said ;)
Thanks Rick
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com