use strtolower() to convert the string to lower case, then use ucfirst() to convert the first character to upper case, for example, if the form element is named firstName, use the following code on line 1 of the page:
<?php if(isset($_POST['firstName'])) {
$_POST['firstName'] = ucfirst(strtolower($_POST['firstName']));
}
?>