Hallo, ich schon wieder ^^
wie ich schon schrieb hab ich jetzt eine neue Extension angelegt. Das Formular ist schon fertig und username sowie uid werden schon eingetragen. aber ich krieg irgendwie einen getvar nicht eingetragen. Ein Auszug vom php:
Code:
function main($content,$conf) {
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
if(isset($this->piVars['submit_button'])) { // WHAT TO DO if content is submitted
#t3lib_div::debug($this->piVars);
$query = 'INSERT INTO tx_usermessages_frame (title,description,pid,absender_name,absender,empfaenger)
VALUES("'.addslashes($this->piVars['DATA']['title']).'",
"'.addslashes($this->piVars['DATA']['description']).'",
"'.$GLOBALS['TSFE']->id.'",
"'.$GLOBALS['TSFE']->fe_user->user['username'].'",
"'.$GLOBALS['TSFE']->fe_user->user['uid'].'",
"'.$this->piVars['wert'].'"
)';$res = mysql(TYPO3_db, $query);echo mysql_error();
header ('Location: '.t3lib_div::locationHeaderUrl('index.php?id=20'));
} else {
$content='
und der Link der zum formular führt sieht zb. so aus:
index.php?id=20&tx_usermessages_pi1[wert]=33
Die neue Zeile wird in die DB geschrieben, aber das Feld "empfaenger" bleibt leer. Kann mir jemand sagen, was da falsch ist?