Problem in retriving the URL Data

shoaib 17 Jul, 2010
Hi,


I have added the value in the URL

projects.org/index.php?option=com_chronocontact&Itemid=582?v_name=18

Where the v_name is the value added in the url.

When I tried to retrive the value from the URL using the code

1)
$v_name = JRequest::getString('v_name', '', 'get');


2)
$v_name = $_GET['v_name']; 


In both the methods I cant able to retrive the data and there is no errors.

It was working fine in SEF. Now I have Turned off the SEF it is not working

Regards,
Shoaib.
🙂
GreyHead 17 Jul, 2010
Hi shoaib,

That's because you aren't using a valid query string here:
index.php?option=com_chronocontact&Itemid=582?v_name=18
The string starts with a '?' then each pair of parameters is separated by an '&'

So you need
index.php?option=com_chronocontact&Itemid=582&v_name=18


Bob
shoaib 21 Jul, 2010
Hi Bob,


Thanks for ur Help.

Shoaib😀
This topic is locked and no more replies can be posted.