<?
//print_r($_POST);
//print array//$_POST - must be capitals
//String Processing

$thename=$_POST["username"];//data from form
$theage=$_POST["userage"];
$theemail=$_POST["useremail"];
$thepc=$_POST["userpc"];

$thename=trim($thename);//removes whitespace
$theage=trim($theage);//remove whitespace

$thename=strtolower($thename);//string to lower first
$thename=ucwords($thename);//capitalise first letter

$theemail=strtolower($theemail);//string to lower

$thepc=strtoupper($thepc);

//print variables
echo $thename."<br>";//after
echo $theage;
echo $theemail;//after
echo $thepc;

?>