I'm trying to figure out how I can put the checkbox inside the label tag like my template has it with the form helper with codeigniter.
echo "<div class=\"actions-left\" style=\"margin-top: 8px;\">";
echo form_label('Auto-login in future.', 'autologin');
echo form_checkbox('autologin');
echo "</div>";
Login Page
Login Template
Well I don't know CodeIgniter, but would this work:
echo form_label( form_checkbox( 'autologin' ) . ' Auto-login in future' );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With