I have a problem with the Joomla! User Session here, Bob. I have two forms one is redirecting to the other. The first form has a dropdown list of 4 values. On the first form's
On Submit code - before sending email: box I have entered
<?php
if ( !$mainframe->isSite() ) { return; }
$session =& JFactory::getSession();
if ($region = "LAM") {
$session->set('region', 'LAM');
} else
if ($region = "APAC") {
$session->set('region', 'APAC');
} else
if ($region = "EMEA") {
$session->set('region', 'EMEA');
} else
if ($region = "NAM") {
$session->set('region', 'NAM');
}
?>
On the second form I am retrieving the value with
<?php
if ( !$mainframe->isSite() ) { return; }
$session =& JFactory::getSession();
$region = $session->get('region');
?>
The problem lies in the fact that I always get the first value of the
if loop which is
LAM on the second form. I don't know why, it's a simple loop, it should work!
I've also tried replacing
$region with
$_POST['region'] with no change in results.