Skip to content

Instantly share code, notes, and snippets.

@damienwebdev
Created September 10, 2015 15:16
Show Gist options
  • Save damienwebdev/97dc0f4a320847d7790d to your computer and use it in GitHub Desktop.
Save damienwebdev/97dc0f4a320847d7790d to your computer and use it in GitHub Desktop.
<?php
$id = 'gender';
$name = $id;
$value = set_value($name, $item[$name]);
?>
<label for="<?php echo $id; ?>">
<select>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
<small class="error">Gender</small>
</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment