Skip to content

Instantly share code, notes, and snippets.

@wesrice
Created November 30, 2013 22:36
Show Gist options
  • Save wesrice/7725501 to your computer and use it in GitHub Desktop.
Save wesrice/7725501 to your computer and use it in GitHub Desktop.
Kyle Problem
<?php
$types = explode( ",", $_GET['types'] );
foreach( $workoutmoves AS $workoutmove ):
?>
<li>
<input class="check_box" type="checkbox" <?php in_array( $workoutmove->slug, $types ) ? 'checked' : ''; ?> value="<?php echo $workoutmove->slug; ?>"> <?php echo $workoutmove->name; ?>
</li>
<?php endforeach; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment