Harlequin Posted March 20, 2011 Share Posted March 20, 2011 Hi Maybe a strange request and perhaps someone here knows a better way of doing what I want. I have a sign up form on my website that automatically pulls the session var 'name' and places this in the text field for "Reference". That way I know which agent signed up a customer. What I need to do now though is allow this variable to be injected through the url for click through banners. This what I've done (within the header HTML Tags): if ($_GET['Reference'] == '') { $_SESSION['Name'] = $my->name; } else { $_SESSION['Name'] = $_GET['Reference']; } However, even though this is loaded on EVERY page view the variable is empty if the user clicks another page. Link to comment https://forums.phpfreaks.com/topic/231171-using-one-of-two-session-variables-that-are-loaded/ Share on other sites More sharing options...
Harlequin Posted March 20, 2011 Author Share Posted March 20, 2011 Hi guys I could really do with some help on this. For some reason if I direct someone to a page and inject a reference into the URL it loads into the session var but when they navigate away it's dropped. Link to comment https://forums.phpfreaks.com/topic/231171-using-one-of-two-session-variables-that-are-loaded/#findComment-1189882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.