[Typo3] read variables from GET
wim.cruysberghs@pandora.be
wim.cruysberghs at telenet.be
Thu Apr 28 16:29:22 CEST 2005
Hi list,
i am working on a little workaround for the jp_staff extension, that shows an unique overview of the personnel member that is included in the list on the INFO-template.
Given the fact that i am on a single view, i have the next URL:
http://www.yourdomain.com/index.php?id=533&tx_jpstaff_pi1[showUid]=15&tx_jpstaff_pi1[backId]=417&L=3
Now i want to grap the next variables to paste them on the link generated by my multilanguage-script:
* tx_jpstaff_pi1[showUid]
* tx_jpstaff_pi1[BackId]
Herefor I want to use the function _GP from the t3lib_div-class in the /t3lib-directory.
$showid = intval (t3lib_div::_GP($tx_jpstaff_pi1[showUid]));
$backid = intval (t3lib_div::_GP($tx_jpstaff_pi1[backId]));
I generate the link in the multilangscript as follows:
$rest_url = "&tx_jpstaff_pi1[showUid]=".$showid."&tx_jpstaff_pi1[backId]=".$backid;
[...]
$flags = array();
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==0?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=0'.$rest_url).'" target="_top">NL </a>';
$flags[] = ($GLOBALS['TSFE']->sys_language_uid==3?$pointer:'').'<a href="'.htmlspecialchars('index.php?id='.$GLOBALS['TSFE']->id.'&L=3'.$rest_url).'" target="_top">FR </a>';
The problem I encounter is that this generates a "0" value for the variables involved...
Someone knows where my ambitions to change the world went wrong??
greetings,
Wim Cruysberghs
More information about the TYPO3-english
mailing list