original post updated with correction from v@no
yeah, it require HTTP_REFFERER variable to be set, anyways, IMO using an external script for this metter is not such good idea. All cookie set should be done in global.php instead.
@v@no, not sure to understand :
1 - what do you mean by
IMO?
2 - and why all cookie set should be done in global.php : I did not see any cookie declared in my global.php file and i know that some mod uses cookies. is there a specific file where to declare the cookies?
@impss
you got this error on your page:
<b>Fatal error</b>: Call to undefined function: server() in <b>C:\CuSStom.com\www\4images\send_design.php</b> on line <b>7</b>
line 7 is about the page redirection (
refresh )
so, forget JS : in send_design.php just comment the 2 lines with JS , and try to replace :
echo 'window.location="',getenv('HTTP_REFERER'),'"';
by
header("Location: ".$_SERVER['HTTP_REFERER']);
: can you tell me if the redirection works for you with this code?