I was trying to display a link in a page that the user would give to the previous page in the drop. First I was using the session
$ _SESSION ['back'] $ _SESSION ['back'] = htmlentities ($ _ server ['REQUEST_URI']);
It worked fine, but I was asked to use variable_gate and set in Doppla and was not used to use sessions, so I did this
global $ prev_global; $ Prev_global = variable_get ($ prev_page, $ default = 'http: //mysite.local'); Variable_set ($ prev_page, htmlentities ($ _ server ['REQUEST_URI'])); . . . Echo "PREV:". $ Prev_global;
But it always points to the current page, what went wrong here?
I do not know that you have variable_get ()
and variable_set ()
, but do not forget to hear them again. And work on the global variable, not a user-based variable
You corrected it for the first time. Use the $ _ session
: That's what it does for you.
Comments
Post a Comment