Echo checkbox input field
-
Hi,
Rookie question, but I’m having trouble echoing a checkbox field in php syntax:
<input name="my_field" type="checkbox" id="my_field" value="yes" <?php checked('yes', $value ); ?> />Obviously this doesn’t work:
echo ' <input name="my_field" type="checkbox" id="my_field" value="yes" <?php checked('yes', $value ); ?> /> ';Who can help me out.. or maybe I just need some sleep.. 😉
Guido
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Echo checkbox input field’ is closed to new replies.