Sorry, that message it what is in the body of the response, so it's not
working, I think. Unless that's what it's supposed to do. In that case, it
won't work for what I want. I simply want the form to send to the php file,
which then processes the information, and redirects the user to the next
HELP!
I know I'm new at this so please don't laugh. But I can't get this to work!
I am using Microsoft IIS with the latest PHP installed.
Here's a smple:
.
.
.
setcookie(testCookie, testValue, time() + 3600, /);
header(Location: http://newpage.php;);
exit;
Later, I pull the cookie:
echo
--- Mike Potter [EMAIL PROTECTED] wrote:
I am using Microsoft IIS with the latest PHP installed.
Here's a smple:
setcookie(testCookie, testValue, time() + 3600, /);
header(Location: http://newpage.php;);
exit;
This will not work with IIS. You need to use a meta refresh
or something to work
-
From: Mike Potter [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2003 15:35
To: [EMAIL PROTECTED]
Subject: [PHP] setcooke(...) before header(Location: XYZ) - Cookie
doesn't set!
HELP!
I know I'm new at this so please don't laugh. But I can't get this to work!
I am using Microsoft IIS
Do you know how do do this?
Thanks,
Mike
Jason K Larson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Discussion on this list has suggested that it can work if PHP is set to
run as ISAPI, not CGI.
HTH,
Jason k Larson
Mike Potter wrote:
HELP!
I know
[top-posting fixed]
Jason K Larson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Discussion on this list has suggested that it can work if PHP is set to
run as ISAPI, not CGI.
Do you know how do do this?
Although using the ISAPI dll version of PHP would
I tried a test file with this, and the form is sent, and the nph-test2.php
file returns this
Status: 302
Content-type: text/html
X-Powered-By: PHP/4.3.0
Location: test.php
Set-Cookie: testcookie=test
Here is my code:
?php
header(HTTP/1.0 302 Redirect);
header(Location: test.php);
I tried this one as well. When trying to load, the browser says
HTTP 500 - Internal server error
Internet Explorer
I even rebooted!
Mike
Jason K Larson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Follow the ISAPI module install instructions.
On Tue, 21 Jan 2003 20:17:40 -0700, you wrote:
I tried a test file with this, and the form is sent, and the nph-test2.php
file returns this
Status: 302
Content-type: text/html
X-Powered-By: PHP/4.3.0
Location: test.php
Set-Cookie: testcookie=test
I'm a bit confused. Is it working for you now,
9 matches
Mail list logo