MoisesZaragoza Posted July 2, 2006 Posted July 2, 2006 On the /create_account.php page how do i make the Checkbox to be checked by default at the end of the day the code will be good
Guest Posted July 3, 2006 Posted July 3, 2006 see how the newsletter for the default osc is setup in create_account.php <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> You could set the default to the tep_draw_checkbox_field function for the checkbox.
MoisesZaragoza Posted July 8, 2006 Author Posted July 8, 2006 Yep that is wehat i have <table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> </tr> </table> But the box is not checked at the end of the day the code will be good
Guest Posted July 8, 2006 Posted July 8, 2006 probably I missed it should be <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1', true) . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.