I have added your suggestions.
I now run the form.html which inputs the fields and passes them to this script.
The result is as before.
I expected to get a message showing my query string (So I know its valid)
and I also expected a message saying:
The query was successfully executed
or
The query could not be executed.
Art
<?php
/this page receives and handles the data frm form.html/
//trim the incoming data
$Array ["Company"] = trim ($Array["Company"]);
$Array ["Logo"] = trim ($Array["Logo"]);
$Array ["Strapline"] = trim ($Array["Strapline"]);
$Array ["Activity"] = trim ($Array["Activity"]);
$Array ["Contact"] = trim ($Array["Contact"]);
$Array ["Phone"] = trim ($Array["Phone"]);
$Array ["Mobile"] = trim ($Array["Mobile"]);
$Array ["Email"] = trim ($Array["Email"]);
$Array ["Add1"] = trim ($Array["Add1"]);
$Array ["Add2"] = trim ($Array["Add2"]);
$Array ["Add3"] = trim ($Array["Add3"]);
$Array ["Add4"] = trim ($Array["Add4"]);
$Array ["Postcode"] = trim ($Array["Postcode"]);
$Array ["Text"] = trim ($Array["Text"]);
//Set the variables for the database access
$Host= "localhost";
$User= "root";
$Password = "123";
$DBName = "NewDatabase";
$TableName = "Feedback";
$Link = mysql_connect($Host, $User, $Password);
$Query= "INSERT into '$TableName'
(company,logo,strapline,activity,contact,phone,mobile,email,add1,add2,add3,add4,postcode,text)
values ('0',
'$Array[company]',
'$Array[Logo]',
'$Array[Strapline]',
'$Array[Activity]',
'$Array[Contact]',
'$Array[Phone]',
'$Array[Mobile]',
'$Array[Email]',
'$Array[Add1]',
'$Array[Add2]',
'$Array[Add3]',
'$Array[Add4]',
'$Array[Postcode]',
'$Array[Text]')";
// Test to let you see if your query was valid
print ("The query is :<br> $Query <p>\n");
if (mysql_query ($DBName, $Query, $Link)) {
print ("The query was successfully executed<br>\n");
} else {
print ("The query coud not be executed<br>\n");
}
mysql_close ($link);
?>
</body>
</html>