Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
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()

Re: [PHP] redirect using php

2006-04-05 Thread Andrei
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-

Re: [PHP] redirect using php

2006-04-05 Thread Barry
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

Re: [PHP] redirect using php

2006-04-05 Thread Andrei
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

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
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:

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
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

RE: [PHP] redirect using php

2006-04-05 Thread Dan Parry
-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

Re: [PHP] redirect using php

2006-04-05 Thread tedd
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

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
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

Re: [PHP] redirect using php

2006-04-05 Thread Thomas Munz
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

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
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

Re: [PHP] redirect using php

2006-04-05 Thread John Nichel
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

[Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Andrei
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

Re: [Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Schalk
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...

RE: [PHP] redirect using php

2006-04-04 Thread Chrome
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

RE: [PHP] redirect using php

2006-04-04 Thread Brady Mitchell
-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:

Re: [PHP] redirect using php

2006-04-04 Thread Schalk
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

RE: [PHP] Redirect using PHP to a new browser window.

2001-03-06 Thread Nick Norton
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