Re: php and javascript

From: Date: Tue, 18 Mar 2003 23:33:13 +0000
Subject: Re: php and javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140220@lists.php.net to get a copy of this message
At 23:52 18-3-2003, you wrote:
I wrote a function to redirect my page to another one. But for some reason I keep getting an error. here is the function I made function js_pointer_login($thepage) { echo '<script language="javascript"> window.location = '$thepage' </script>'; } beside the quote thing which others mentioned, please make it as cross-browser-compatible as possible:
window.location.href= and try to let $thepage be a complete url, including the http:// and the www.domain.org/ part. That will work in more browsers!

« previous php.general (#140220) next »