I am trying to extract two values from the url with Jinput.
My url is:
http://localhost/kitchen-guide-new/index.php?option=com_content&view=article&id=45?subscribers_e[email protected]&subscribers_name=test&encoding=UTF-8
I am using the following code:
$jinput = JFactory::getApplication()->input;
$name = $jinput->get('subscribers_name','none','raw');
$email = $jinput->get('subscribers_email','none','raw');
echo $name;
echo $email;
The problem is that I only get the last value; in other words I'm getting:
$name = 'test';
$email = 'none'; // (should be [email protected])
Any idea what I am doing wrong and how I should fix it?