Re: [PHP] redirecting the browser

2001-10-24 Thread Mak

Hi, you can use Javascript as follows:

?php
  // your code here...
  print(scriptdocument.location.href='somepage.php';/script);
  //continue yr code...
?

Hope it helps.

- Mak

- Original Message -
From: Ozgur Demirtas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 2:47 PM
Subject: [PHP] redirecting the browser


 Hi all,

 I have a PHP script and at one point of the script I am trying to redirect
 my browser to a certaion page. I can't seem to find an easy way of doing
 this. header() call is so much of a problem. There is no such function
like
 redirect(...) as in ASP?

 PS: I am using PHP version 3.09 as an Apache module on Solaris.

 Thanks!
 Ozgur




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] redirecting the browser

2001-10-24 Thread Valentin V. Petruchek

Use this:
?php
Header(Location: anypage.php);
exit(); //stopping the script
?
- Original Message -
From: Ozgur Demirtas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 9:47 AM
Subject: [PHP] redirecting the browser


 Hi all,

 I have a PHP script and at one point of the script I am trying to redirect
 my browser to a certaion page. I can't seem to find an easy way of doing
 this. header() call is so much of a problem. There is no such function
like
 redirect(...) as in ASP?

 PS: I am using PHP version 3.09 as an Apache module on Solaris.

 Thanks!
 Ozgur




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] redirecting the browser

2001-10-24 Thread Kodrik

 ?php
 Header(Location: anypage.php);
 exit(); //stopping the script
 ?

No, he wants to launch a script after Javascript has processed.
PHP is run on the server, Javascript on the client so Javascript has to run 
after PHp is finished.
For him to launch a Javascript code, he can only do it by contacting the 
server and asking it for a page.
The only way to do it with Javacript and PHP without changing the page you 
are on is to use an invisible frame, which he said he didn't want to.

So, it is impossible with only Javascript and PHP.

But he can do it with Java or Flash to talk to his server.
But you must handle either pretty well to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] redirecting the browser

2001-10-24 Thread Kodrik

I got some thread mixed up. Ignore that answer.

 No, he wants to launch a script after Javascript has processed.
 PHP is run on the server, Javascript on the client so Javascript has to run
 after PHp is finished.
 For him to launch a Javascript code, he can only do it by contacting the
 server and asking it for a page.
 The only way to do it with Javacript and PHP without changing the page you
 are on is to use an invisible frame, which he said he didn't want to.

 So, it is impossible with only Javascript and PHP.

 But he can do it with Java or Flash to talk to his server.
 But you must handle either pretty well to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]