1 Reply Latest reply on Mar 29, 2010 5:22 PM by Albert S.

    Problem with Radio Group code @@checked@@

    sherler8

      Since upgrading to ADDT 1.01 and CS4 I get a code error generated for Radio Groups. The code generated, which doesn't work, is:

       

      <input <?php if(!(strcmp(KT_escapeAttribute($row_rstable['field']),"Y"))) {echo "@@checked@@";} ?> type="radio" name="table_<?php echo $cnt1; ?>" id="table_<?php echo $cnt1; ?>_1" value="Y" />
      <label for="table_<?php echo $cnt1; ?>_1">Y</label>

       

      which I have to change to the following to get it to work:

       

      <input <?php if(!(strcmp(KT_escapeAttribute($row_rstable['field']),"Y"))) {echo "CHECKED";} ?> type="radio" name="table_<?php echo $cnt1; ?>" id="table_<?php echo $cnt1; ?>_1" value="Y" />
      <label for="table_<?php echo $cnt1; ?>_1">Y</label>

       

       

      I have to manually change the code all of the time.  Anyone else having this problem?  Solution?

       

      Thanks.

       

      [Moved from Dreamweaver Application Development forum by moderator]