passing variable through URL in Joomla script - Joomla! Forum - community, help and support


hi
i creating website querying database.
i have made such website before writing whole scripts myself, switched joomla 2.5.
previously each entry of database pass id 1 php script filter.php next script via following:
<td <a href='prot_disp1.php?id=$accession_id'>$protein_name</span></a></font></td>

this goes second script example 'prot_disp1.php?id=mute3115' read $accession_id command:
$accession=$_request['id'];

this not working in joomla , maybe because script name fixed , cannot add '?$id' in front of it.

can suggest alternative pass values way in joomla 2.5 ?
thanks
konika

you may pass variable through session.

code: select all

$session =& jfactory::getsession();
$session->set("id","mute3115");


in page id value

code: select all

$session =& jfactory::getsession();
$id=$session->get("id");





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support