Well, I have gotten at least to the point where the PHP is called correctly from the HTML. Now for some reason nothing gets written to the table in Access. I am posting the PHP code below. Thanks
<?php
if ($_POST[submit] == "Submit")
{
// Collect form data abd assign scalar variables
$Suffix = $_POST[suffix];
$Prefix = $_POST[prefix];
$lname = $_POST[lname];
$fname = $_POST[fname];
$orgname = $_POST[orgname];
$postitle = $_POST[postitle];
$dptpgm = $_POST[dptpgm];
$secunit = $_POST[secunit];
$buid = $_POST[buid];
$add1 = $_POST[add1];
$add2 = $_POST[add2];
$add3 = $_POST[add3];
$city = $_POST[city];
$state = $_POST[state];
$county = $_POST[county];
$country = $_POST[country];
$zip = $_POST[zip];
$phone = $_POST[phone];
$fax = $_POST[fax];
$email = $_POST[email];
$grp = $_POST[grp];
$aprpt = $_POST[aprpt];
$hsub = $_POST[hsub];
$lserv = $_POST[lserv];
$status = $_POST[status];
$comments = $_POST[comments];
//establish connection to data base
$conn = odbc_connect('Driver={Microsoft Access Driver (*.mdb)};
DBQ=C:\Documents and Settings\aurobins\Desktop\test','','');
// SQL statement
$sql = "INSERT INTO BMCactive " .
"(suffix,prefix,lanem,fname,orgname,postitle,dptpgm,secunit,
buid,add1,add2,add3,city,county,state,country,zip,phone,
fax,email,grp,aprpt,hsub,lserv,status,comments)
VALUES ('$suffix', '$prefix', '$lname', '$fname',
'$orgname', '$postitle', '$dptpgm', '$secunit',
'$buid', '$add1', '$add2', '$add3', '$city',
'$country', '$state', '$country', '$zip',
'$phone', '$fax', '$email', '$grp', '$aprpt',
'$hsub', '$lserv', '$status', '$comments')";
// Execute SQL statement and store results as a recordset
$rs = odbc_exec($conn,$sql);
odbc_close($conn);
}
echo "Your record was successfully added!!";
?>