Last active
May 22, 2019 11:52
-
-
Save johnmorris/5477376 to your computer and use it in GitHub Desktop.
Dynamic select box - the HTML. Video tutorial at: http://youtu.be/rSncrXP0HeU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="the_name"> | |
<?php foreach ( $results as $option ) : ?> | |
<option value="<?php echo $option->desired_value; ?>"><?php echo $option->desired_label; ?></option> | |
<?php endforeach; ?> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment