Jump to content

redirect


dreamwest

Recommended Posts

Im tryinf to go back to pages from where i enter login.php

 

$come_from = $_SERVER['HTTP_REFERER'];

if ($come_from == "site.com/login.php"){

$redirect_url = "http://site.com";

}else{

$redirect_url = javascript:history.go(-2);

redirect($redirect_url)

}

 

I  realize javascript shouldnt be there cause it giving an error  Parse error: syntax error, unexpected ':' in /home/j

Link to comment
https://forums.phpfreaks.com/topic/158332-redirect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.