On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header()
Or with javascript:
?
...
?
script language=JavaScript
!--
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
//--
/script
?
...
?
PS: Sorry Mark...
Andy
Mark Kelly wrote:
On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:
-Original Message-
Andrei wrote:
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
Wasn't it - document.location.href ='www.example.com';
o_O ?
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Andy
Barry wrote:
Andrei wrote:
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
Wasn't it - document.location.href ='www.example.com';
o_O ?
Barry
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP provides
the header() function.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP provides
the header() function.
I have been using that
-Original Message-
From: Mark Kelly [mailto:[EMAIL PROTECTED]
Sent: 05 April 2006 14:19
To: php-general@lists.php.net
Subject: Re: [PHP] redirect using php
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh
At 11:21 PM +0200 4/4/06, Schalk wrote:
Greetings All,
In JSP I have access to a function called sendRedirect() to send a
user from one page to another, usually after some processing
completed. Is there a similar function in PHP?
After processing a form and sending the data via email, I
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP
provides the header() function.
I have been using that method when I got part-way through some
processing that
To: php-general@lists.php.net
Subject: Re: [PHP] redirect using php
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP
On Wednesday 05 April 2006 14:33, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP
provides the header() function.
I have been
Andrei wrote:
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Assuming the end user has JS turned on. JS and Meta Refreshes are not
acceptable when you need to be sure the redirect works.
--
John C. Nichel IV
Programmer/System Admin
Andrei wrote:
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Assuming the end user has JS turned on. JS and Meta Refreshes are not
acceptable when you need to be sure the redirect works.
Depends on your user target...
I
Thanks everyone for your help. In the end the simplest one that works
for this specific project was:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
Andrei wrote:
Andrei wrote:
It works with document.location = '...'; too. I use only this method
and it worked on all browsers...
http://uk.php.net/manual/en/function.header.php
---
http://chrome.me.uk
-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: 04 April 2006 22:21
To: php-general@lists.php.net
Subject: [PHP] redirect using php
Greetings All,
In JSP I have access to a
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header() function.
http://php.net/header
To redirect you can use:
Brady Mitchell wrote:
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header() function.
http://php.net/header
If the only thing you plan on doing after incrementing your counter is going
to the new page, why not put the target="_blank" in the a tag that points
to your script. Then you'll do your counter script and redirect when you're
already in a new window.
--
PHP General Mailing List
18 matches
Mail list logo