Форуми / Cotonti / Support / use the url from last visited page

Trustmaster
#36787 13.01.2013 07:52

Should be as easy as this:

$cfgsubj = "<input type=\"hidden\" maxlength=\"100\" size=\"24\" value=\"".$_SESSION['visited_pages'][count($_SESSION['visited_pages'])-1]."\" name=\"subject\" id=\"subject\" class=\"text\" />";

BTW, there's a bug with parenthesis in that $prev_page sequence, it should be

$prev_page = $_SESSION['visited_pages'][count($_SESSION['visited_pages'])-1];

 

May the Source be with you!