[TYPO3-formidable] Checkbox - How to check

Genc Ural ugenc at baumer.com
Mon Sep 17 17:26:49 CEST 2012


Hello,

i store the checkbox Selections in the database like this: 1,2,3

How can I check the checkboxes that are stored in the database?

Here is my code:

<renderlet:CHECKBOX name="part5_offer_interests">
      <data>
        <items>
          <item caption="abc" value="1" />
          <item caption="def" value="2" />
          <item caption="ghi" value="3" />
        </items>
        <userobj>
          <php><![CDATA[

          $query = $GLOBALS['TYPO3_DB']->exec_SELECTquery("part5_offer_interests","ma_forms","persnr = ".intval($_GET['pers']), "", "", "1");
          $result = $GLOBALS['TYPO3_DB']->sql_fetch_row($query);

          return $result[0];

          ]]></php>
        </userobj>
      </data>
    </renderlet:CHECKBOX>


What’s wrong???????

Thank for your help.

Best regards.
Ural Genc




Geschäftsführer: Joachim Acker · Dr. Michael Schneider
Sitz der Gesellschaft: Villingen-Schwenningen
Amtsgericht Freiburg: HRA 601898  Ust. ID: DE 142983906
Persönlich haftende Gesellschafterin: IVO Verwaltungs-GmbH · Villingen-Schwenningen · HRB 602261






More information about the TYPO3-project-formidable mailing list