Also the line defining the query has syntax error:
$query="INSERT INTO tblSwimmer(fldSwimmerName,fldAge) VALUES("'$_POST[Swimmer Name]'",'$_POST[Age]')";
Notice after the VALUES keyword you have a double quote, this CLOSES the delimited string you are trying to create then you open another with the single quote, you need to remove the double quotes around $_POST[swimmer name] (also you need to change this reference to be accurate as BG pointed out.
$query="INSERT INTO tblSwimmer(fldSwimmerName,fldAge) VALUES('$_POST[Swimmer_Name]','$_POST[Age]')";