if ($_POST['do'] == 'addmember'){ $first_letter = substr($_POST['username'], 0, 1); $the_rest = substr($_POST['username'], 1); $_POST['username'] = strtoupper($first_letter) . $the_rest; }