[Solved] Fatal error: Switch statements may only contain one default clause (php7)
You can not use a case statement inside a case. Try this corrected code switch ( $type ) { case ‘heading’: echo ‘</td></tr><tr valign=”top”><td colspan=”2″><h4>’ . $desc . ‘</h4>’; break; case ‘checkbox’: echo ‘<input class=”checkbox’ . $field_class . ‘” type=”checkbox” id=”‘ . $id . ‘” name=”‘ . $shortname_options . ‘[‘ . $id . ‘]’ . … Read more