Can php output a url that's currently in clients' browsers? I need something that'll do the samething as javascript's location.href... anyone know?
Thank You.
a url that's currently in clients' browsers
That would be your PHP script! so use $SERVER['PHP_SELF'] or $SERVER{'SCRIPT_NAME']
If you meant that you want the page BEFORE the PHP script, then use the HTTP_REFERER in $_ENV.
Diego
Yeah... I just realized that I can find out the full URL by echoing: 'http://'.$SERVER['HTTP_HOST'].$SERVER['PHP_SELF']; which will output the samething as javascript's location.href =)