mardi 29 mars 2016

form_checkbox() cannot input text between produced tag

im using form_helper to create my checkboxes.

<?php echo form_checkbox('test','test'); echo "test"; ?>

i always print it below the checkbox, and the code producing :

<input type="checkbox" name="test" value="test"></input>test

how can i make it so it looks like this :

<input type="checkbox" name="test" value="test">test</input>

or atleast make it so the text "test" is printed beside the checkbox, not in newline




Aucun commentaire:

Enregistrer un commentaire