hi i'm trying to insert a query on sql db but its not successful

PHP Code:
<?php
$se9rverName 
".";
$connectionInfo = array( "UID"=>"WebsitePhp","PWD"=>"WebsitePhp""Database"=>"php");
$conn sqlsrv_connect$serverName$connectionInfo);

if( 
$conn )
{
    echo 
"Connection established.\n";
}
else
{
    echo 
"Connection could not be established.\n";
    die( 
print_rsqlsrv_errors(), true));
}

//-----------------------------------------------
// Perform operations with connection.
//-----------------------------------------------

/* Close the connection. */
//sqlsrv_close( $conn);
?>
PHP Code:
<?php
include("connect.php");
?>

<?php
if($_POST['submit']){
    
$sql="insert into dbo.Loan (Lon_FirstName,Lon_SurName) values (?,?)"
    
$params= array("$_POST[fname]","$_POST[lname]");
    
$test=sqlsrv_query($conn,$sql,$params);
    
    
//header('Location: index.php');


    
sqlsrv_close($conn);
}
//$test = sqlsrv_query('select * from loan');
?>
<form method="POST" action="index.php">
<table>
<tr>
<td>FirstName:<input type="textbox" name="fname"/></td>
<td>LastName:<input type="textbox" name="lname"/></td>
</tr>
<tr>
<td colspan=2><input type="submit" name="submit" value="submit"></td>
</tr>

</table>
</form>