i have php script, when i executed this code, i got warning
Warning: trim() expects parameter 1 to be string, array given in home/public_html
It appears the error is in your html and not in the php.
If $_POST['First_Name'] is an array while it should not be, it is likely your html looks something like:
$_POST['First_Name']
^^ here, remove this