Thank you jpadie!
This is what worked for me
<?php
// Redirect browser
header("location:http://localhost/profiles/list_companies-test.php");
include("includes/connection.php");
$id = $_GET[id];
$query[] = "INSERT INTO tblCompanies1 (companyName, corpAddress1, corpAddress2, city...