switch ($post['field18']) { case 'TEXT A': { <CODE> break; } case 'TEXT B': { <CODE> break; } case 'TEXT C': { <CODE> break; } default: { <CODE> } }