[TYPO3-english] Re: Re: t3lib_div::_GP don't work on 6.2 ?
TSniper
masmoudi_moha at yahoo.fr
Thu Feb 4 14:16:41 CET 2016
Hello, thank you all for your reply, i still have this problem unresolved.
@Jigal, here the JS code to open this iFrame :
$('.btn_edit_product').click(function() {
var productID = $(this).attr('title');
$dialog_edit.append($("<iframe class='no-border full-width-height' />").attr("src", "index.php?type=1296727025&tx_carmanager_pi1[carID]="+carID+"&no_cache=1"));
alert (productID); // This alert show me the productID
$dialog_edit.dialog('open');
return false;
});
and this is the PHP Code :
<? if(!isset($this->piVars['submit'])) {
$myVars = t3lib_div::_GP('tx_productmanager_pi1');
// display the variable it is showing as empty
debug ($myVars, 'vars of request');
$productID = $myVars['productID'];
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'*', // SELECT ...
'tx_productmanager_products', // FROM ...
'uid=' . intval($productID) . $this->cObj->enableFields('tx_productmanager_products') , // WHERE...
'', // GROUP BY...
'products', // ORDER BY...
'' // LIMIT ...
);
.....
?>
I know that this is not the best way to deal with it, but this what i got, it is a website that i only want to migrate.
Any new ideas ?
More information about the TYPO3-english
mailing list